MASSIVE NETWORK DISCOVERY

install | masscan | public

USAGE

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

OPTIONS

-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

TARGETS

the whole internet – see masscan-public

RESULTS

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

ADDITIONAL NOTES

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

RESOURCES

https://github.com/robertdavidgraham/masscan/blob/master/doc/masscan.8.markdown

https://danielmiessler.com/study/masscan/


https://stackoverflow.com/questions/51005045/performing-a-masscan-on-an-input-file-containing-domain-names

https://techyrick.com/masscan-full-tutorial/ ==> -pU:53, –http-user-agent


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun