MASSIVE NETWORK DISCOVERY

INSTALL & EXCLUDES

#slackware
#ls -lF /var/log/packages/{gcc,git,libcap,make}-[0-9]*

#ubuntu
#apt install gcc git make libpcap-dev

git clone https://github.com/robertdavidgraham/masscan
cd masscan/
grep ^proc /proc/cpuinfo
make -j8 >/dev/null && echo BUILT
make install >/dev/null && echo INSTALLED
which masscan
mkdir -p /etc/masscan/
cp data/exclude.conf /etc/masscan/
vi /etc/masscan/exclude.conf

…keep the special address blocks and eventually get rid of the irrelevant complains

USAGE

masscan --nmap

Note the defaults are

-sS -Pn -n --randomize-hosts -v --send-eth

LAN

cidr=x.x.x.x/xx
masscan $cidr -p25 --rate=100000 -oG ${cidr/\//_}.smtp.og
masscan $cidr -p0-65535 --rate=100000 -oG ${cidr/\//_}.allports.og

#--open
#--banners
#‐‐top-ports 100

grep -v ^# ${cidr/\//_}.smtp.og | sort -V -k4
grep -v ^# ${cidr/\//_}.allports.og | sort -V -k4

against the public network

screen -S scan
masscan 0.0.0.0/0 -p25 --excludefile /etc/masscan/exclude.conf --rate=500000 -oG massp25.og

#w/o This network exclusion even
masscan 0.0.0.0/0 -p25 --excludefile ~/exclude.conf --rate=500000 -oG massp25.og --banners --open-only > massp25.stdout

ADDITIONAL NOTES / TRASH

ls -lF /etc/masscan/masscan.conf #noexist
vi /etc/masscan/masscan.conf

rate =  100000
output-format = xml
output-status = all
output-filename = scan.xml
ports = 0-65535
range = 0.0.0.0-255.255.255.255
excludefile = /etc/masscan/exclude.conf

RESOURCES

MASSCAN: Mass IP port scanner https://github.com/robertdavidgraham/masscan

Masscan Examples: From Installation to Everyday Use https://danielmiessler.com/study/masscan/

Masscan and massive address lists https://blog.erratasec.com/2018/11/masscan-and-massive-address-lists.html

exclude lists

IANA IPv4 Special-Purpose Address Registry https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml

Special Use IPv4 Addresses https://tools.ietf.org/html/rfc5735

List of assigned /8 IPv4 address blocks https://en.wikipedia.org/wiki/List_of_assigned_/8_IPv4_address_blocks

official https://github.com/robertdavidgraham/masscan/blob/master/data/exclude.conf

br0k3nb1nary/masscan-exclude https://github.com/br0k3nb1nary/masscan-exclude/blob/master/exclude.conf

pie charts

Is there a way to make “sunburst charts” (multi-level pie charts) in LaTeX? https://tex.stackexchange.com/questions/433848/is-there-a-way-to-make-sunburst-charts-multi-level-pie-charts-in-latex


HOME | GUIDES | BENCHMARKS | html