Skip to content

Commit

Permalink
Adjusting the generation of enrich_ip enriched entries (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcpsec committed Sep 16, 2014
1 parent b42ddf7 commit 6787708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions winnower.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def winnow(in_file, out_file, enr_file):
if not reserved(ipaddr):
wheat.append(each)
if enrich_ip:
e_data = (addr, addr_type, direction, source, note, date, enrich_IPv4(ipaddr, org_data, geo_data, dnsdb))
e_data = (addr, addr_type, direction, source, note, date) + enrich_IPv4(ipaddr, org_data, geo_data, dnsdb)
enriched.append(e_data)
else:
e_data = (addr, addr_type, direction, source, note, date, enrich_IPv4(ipaddr, org_data, geo_data))
e_data = (addr, addr_type, direction, source, note, date) + enrich_IPv4(ipaddr, org_data, geo_data)
enriched.append(e_data)
else:
sys.stderr.write('Found invalid address: %s from: %s\n' % (addr, source))
Expand All @@ -141,7 +141,7 @@ def winnow(in_file, out_file, enr_file):
sys.stderr.write('Enriching %s\n' % addr)
wheat.append(each)
if enrich_dns:
e_data = (addr, addr_type, direction, source, note, date, enrich_FQDN(ipaddr, date, dnsdb))
e_data = (addr, addr_type, direction, source, note, date, enrich_FQDN(addr, date, dnsdb))
enriched.append(e_data)

sys.stderr.write('Dumping results\n')
Expand Down

0 comments on commit 6787708

Please sign in to comment.