#!/bin/bash # by @nil0x42 shuf IP-LIST.TXT > /tmp/ips.txt # randomize ip-list # for each port (in random order): for i in {1..65535}; do echo $i; done | shuf | while read port; do # scan single port on every IP from randomized ip-list nmap -sS -PN -n --max-retries=0 --max-rtt-timeout=1000ms \ --min-rate=10000 --min-hostgroup=4096 -iL /tmp/ips.txt -p $port done # details here: https://twitter.com/nil0x42/status/1432605540220297219