-
-
Save emadshanab/d3c6eeacd9636d6aec7da12d8ca1125a to your computer and use it in GitHub Desktop.
"Quickly" scan all ports for a big list of IPs with nmap, while avoiding being banned,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment