據說這是最快速的互聯網端口掃描工具,能夠在6分鐘掃描整個互聯網。
安裝:
git clone https://github.com/robertdavidgraham/masscan.git /opt/masscan
cd /opt/masscan
make
make install
運行:cd /opt/masscan/bin
./masscan -p80,8000-8100 10.0.0.0/8
-p80,8000-8100定義掃描端口爲80和8000到8100
./masscan -p0-65535 10.0.0.0/8 --rate 150000 -oL output.txt
--rate定義每秒發送的數據包個數,根據自己實際網絡情況謹慎設置,
-oL定義掃描結果輸出位置。
./masscan -p80,8000-8100 10.0.0.0/8 --echo>scan.conf
--echo>scan.conf輸出此次的配置到scan.conf
./masscan -c scan.conf
使用scan.conf中的配置進行掃描