Skip to content

Commit

Permalink
add controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Larinier committed Nov 3, 2017
1 parent 8d37026 commit 45529ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analyzers/Shodan/shodan_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def info_domains(self, domain):
ips = list(set([r['ip_str'] for r in results['matches']]))
ports = list(set([r['port'] for r in results['matches']]))
transports = list(set([r['transport'] for r in results['matches']]))
isp = list(set([r['isp'] for r in results['matches']]))
asn = list(set([r['asn'] for r in results['matches']]))
orgs = list(set([r['org'] for r in results['matches']]))
isp = list(set([r['isp'] for r in results['matches'] if 'isp' in r]))
asn = list(set([r['asn'] for r in results['matches'] if 'asn' in r]))
orgs = list(set([r['org'] for r in results['matches'] if 'org' in r]))

return {'all_domains': all_domains, 'ips': ips, 'ports': ports, 'transports': transports,
'isp': isp, 'asn': asn, 'orgs': orgs
Expand Down

0 comments on commit 45529ba

Please sign in to comment.