summaryrefslogtreecommitdiffstats
path: root/Reaktor
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-05-02 16:14:33 +0200
committerEUcancER <root@euer.krebsco.de>2012-05-02 16:14:33 +0200
commitf41bc10acdd99e1a2e644db5206419119008b4f2 (patch)
treef854bc091bd4a65b8c06bc473f8b46c6292d44fc /Reaktor
parent6969db3c771a621c5aabf796a8a057fcebdc59bf (diff)
Reaktor:dns fix bug
gxfr -> bxfr add --skip to dnsrecon
Diffstat (limited to 'Reaktor')
-rwxr-xr-xReaktor/repos/consolidate_dns/index12
1 files changed, 7 insertions, 5 deletions
diff --git a/Reaktor/repos/consolidate_dns/index b/Reaktor/repos/consolidate_dns/index
index 71a51c6a..605e6b2f 100755
--- a/Reaktor/repos/consolidate_dns/index
+++ b/Reaktor/repos/consolidate_dns/index
@@ -4,15 +4,17 @@ from subprocess import Popen
import csv
import sys
import tempfile
+
+
os.chdir (os.path.dirname (os.path.realpath (sys.argv[0])))
dnsrecon_enabled = False
DNSRECON = "../dnsrecon/dnsrecon.py"
-dnsrecon_wordlist="../dnsrecon/namelist.txt"
+dnsrecon_wordlist="namelist.txt"
silent=open("/dev/null","w")
gxfr_enabled = False
GXFR = "../gxfr/gxfr.py"
bxfr_enabled = False
-BXFR = "../gxfr/gxfr.py"
+BXFR = "../bxfr/bxfr.py"
domains = {}
try:
DOMAIN=sys.argv[1]
@@ -40,7 +42,7 @@ else:
if dnsrecon_enabled:
dnsrecon_tmp = tempfile.NamedTemporaryFile(delete=False).name
print ("Starting dnsrecon, this may take some time")
- p = Popen([DNSRECON,"-d",DOMAIN,"--csv",dnsrecon_tmp,'-D',dnsrecon_wordlist,"-t","brt,srv,axfr"],stdout=silent,stderr=silent)
+ p = Popen([DNSRECON,"-d",DOMAIN,"--csv",dnsrecon_tmp,'-D',dnsrecon_wordlist,"-t","brt,srv,axfr","--skip"],stdout=silent,stderr=silent)
p.wait()
reader = csv.reader(open(dnsrecon_tmp))
for row in reader:
@@ -53,7 +55,7 @@ if dnsrecon_enabled:
if gxfr_enabled:
gxfr_tmp = tempfile.NamedTemporaryFile(delete=False).name
print ("Starting gxfr, this may take some time")
- p = Popen(["/usr/bin/python",GXFR,DOMAIN,"-q","5","--csv",gxfr_tmp],stdout=silent,stderr=silent)
+ p = Popen(["/usr/bin/python",GXFR,DOMAIN,"-q","3","--csv",gxfr_tmp],stdout=silent,stderr=silent)
p.wait()
reader = csv.reader(open(gxfr_tmp))
for row in reader:
@@ -65,7 +67,7 @@ if gxfr_enabled:
if bxfr_enabled:
bxfr_tmp = tempfile.NamedTemporaryFile(delete=False).name
print ("Starting bxfr, this may take some time")
- p = Popen(["/usr/bin/python",BXFR,DOMAIN,"-q","5","--csv",bxfr_tmp],stdout=silent,stderr=silent)
+ p = Popen(["/usr/bin/python",BXFR,DOMAIN,"-q","3","--csv",bxfr_tmp],stdout=silent,stderr=silent)
p.wait()
reader = csv.reader(open(bxfr_tmp))
for row in reader: