summaryrefslogtreecommitdiffstats
path: root/Reaktor/repos/consolidate_dns
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-05-02 15:10:40 +0200
committerEUcancER <root@euer.krebsco.de>2012-05-02 15:10:40 +0200
commit6969db3c771a621c5aabf796a8a057fcebdc59bf (patch)
treeb01670be4cf65e7714bbee85c651b82b1278c59f /Reaktor/repos/consolidate_dns
parentf35944ef891981436f6a5656521872057c9b84f8 (diff)
fix bug in consolidate_dns
Diffstat (limited to 'Reaktor/repos/consolidate_dns')
-rwxr-xr-xReaktor/repos/consolidate_dns/index8
1 files changed, 7 insertions, 1 deletions
diff --git a/Reaktor/repos/consolidate_dns/index b/Reaktor/repos/consolidate_dns/index
index c66e54bf..71a51c6a 100755
--- a/Reaktor/repos/consolidate_dns/index
+++ b/Reaktor/repos/consolidate_dns/index
@@ -44,6 +44,8 @@ if dnsrecon_enabled:
p.wait()
reader = csv.reader(open(dnsrecon_tmp))
for row in reader:
+ if not row[1] in domains:
+ domains[row[1]] = []
domains[row[1]] += row[2:]
print ("...finished with [%d] domains" %reader.line_num)
os.unlink(dnsrecon_tmp)
@@ -55,7 +57,9 @@ if gxfr_enabled:
p.wait()
reader = csv.reader(open(gxfr_tmp))
for row in reader:
- domains[row[0]] += row[1:]
+ if not row[0] in domains:
+ domains[row[0]] = []
+ domains[row[0]] += row[1:]
print ("...finished with [%d] domains" %reader.line_num)
os.unlink(gxfr_tmp)
if bxfr_enabled:
@@ -65,6 +69,8 @@ if bxfr_enabled:
p.wait()
reader = csv.reader(open(bxfr_tmp))
for row in reader:
+ if not row[0] in domains:
+ domains[row[0]] = []
domains[row[0]] += row[1:]
print ("...finished with [%d] domains" %reader.line_num)
os.unlink(bxfr_tmp)