We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d498a48 commit e493e33Copy full SHA for e493e33
1 file changed
analyze_hosts.py
@@ -335,7 +335,8 @@ def prepare_queue(options):
335
scanner = nmap.PortScanner()
336
scanner.scan(hosts='{0}'.format(options['target']),
337
arguments=arguments)
338
- hosts = scanner.all_hosts()
+ hosts = sorted(scanner.all_hosts(),
339
+ key=lambda x: tuple(map(int, x.split('.'))))
340
else:
341
hosts = [options['target']]
342
with open(options['queuefile'], 'a') as queuefile:
0 commit comments