start an env that stays around for ever
screen -S mass
check version and list options compatible with nmap
masscan -V masscan --nmap
the defaults are
-sS -Pn -n --randomize-hosts -v --send-eth
-iL /tmp/scan.list -oJ /root/mass.json -oG /root/mass.grep --open-only --banners -p0-65535,U:0-65535 vs --top-ports 1000 --rate=50000 --rate=100000
check the actual resulting command as such
masscan ... --echo
the whole internet – see masscan-public
either parse and send the json to some log server –or– simply proceed with the grep-ready output
grep -v ^# /root/mass.grep | sort -V -k4
hardcode the settings in a file
ls -lF /etc/masscan/masscan.conf # no exist mkdir -p /etc/masscan/ vi /etc/masscan/masscan.conf rate = 100000
https://github.com/robertdavidgraham/masscan/blob/master/doc/masscan.8.markdown
https://danielmiessler.com/study/masscan/
https://techyrick.com/masscan-full-tutorial/ ==> -pU:53, –http-user-agent