Basic Masscan Usage

Posted by r3kind1e on June 18, 2022

masscan

1
2
3
4
5
6
sudo apt-get --assume-yes install git make gcc
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make -j
cd bin
./masscan --regress
1
2
./masscan -p22,80,443,53,3389,8080,445 -Pn --rate=800 --banners 10.142.111.0/24 -e tap0 --router-ip 10.142.111.1
./masscan -p22,80,443,53,3389,8080,445 -Pn --rate=800 --banners 10.142.111.0/24 -e tap0 --router-ip 10.142.111.1 --echo > masscan.conf
1
2
3
4
gedit masscan.conf

output-filename = scan.list
format = list
1
2
masscan -c masscan.conf
cat scan.list