From 5a4b6cee78a05dcceb64b3464b6d71d25d2f3e2d Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Mon, 17 Feb 2020 10:08:26 -0500 Subject: [PATCH] Updated how final list gets displayed. --- theHarvester/__main__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/theHarvester/__main__.py b/theHarvester/__main__.py index 8384039b..7867fe54 100644 --- a/theHarvester/__main__.py +++ b/theHarvester/__main__.py @@ -425,12 +425,10 @@ async def handler(lst): print('\n[*] Hosts found: ' + str(len(all_hosts))) print('---------------------') all_hosts = sorted(list(set(all_hosts))) - """full_host = hostchecker.Checker(all_hosts) - full, ips = await full_host.check()""" db = stash.StashManager() - full = [host if ':' in host else word in host.split(':')[0] and host for host in full] + full = [host if ':' in host and word in host else word in host.split(':')[0] and host for host in full] full = [host for host in full if host] - full.sort(key=lambda el: el.split(':')[0] if el else ':' in el and el) + full.sort(key=lambda el: el.split(':')[0]) for host in full: print(host) host_ip = [netaddr_ip.format() for netaddr_ip in sorted([netaddr.IPAddress(ip) for ip in ips])]