Update theHarvester.py

Made it so ips arnen't duplicated.
This commit is contained in:
Matt 2019-01-23 12:27:16 -05:00 committed by GitHub
parent 1bf02717be
commit 7f5eef72e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -660,7 +660,7 @@ def start():
else:
print('\n[*] IPs found: ' + str(len(all_ip)))
print('-------------------')
ips = sorted(ipaddress.ip_address(line.strip()) for line in all_ip)
ips = sorted(ipaddress.ip_address(line.strip()) for line in set(all_ip))
print('\n'.join(map(str, ips)))
if len(all_emails) == 0: