mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
Updated how final list gets displayed.
This commit is contained in:
parent
ae967ef84e
commit
5a4b6cee78
1 changed files with 2 additions and 4 deletions
|
@ -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])]
|
||||
|
|
Loading…
Reference in a new issue