Masscan

masscan

Sameh1200 Updated

File contents

masscan

Repo

https://github.com/robertdavidgraham/masscan

Installation

sudo apt install masscan

# From source
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make
sudo make install

Using

# Fast top ports
sudo masscan -p1-1000 192.168.1.0/24 --rate 10000 -oL open.txt

# Specific ports
sudo masscan -p80,443,8080,8443 target.com --rate 5000

# With banners
sudo masscan -p80,443 target.com --banners --rate 1000

Real-time usage (typical)

Scope Duration Notes
Single IP top 1000 < 5 s high rate
/24 top ports 10 – 60 s --rate 10000
Internet-scale minutes only authorized
Banner grab slower --banners

Extremely fast. Always stay within authorized scope and local legal limits. High rates can trigger upstream filters.

Current Step

Ultra-fast large-scale port discovery.

Next Step

Take open ports into nmap for version detection or naabu for refinement.

Errors Fixes

  • Requires root → always use sudo
  • Interface selection → --interface eth0 or -e
  • Too aggressive → lower --rate
  • Scope → only scan authorized ranges

Sameh1200/HajrasSkillsToolsMCP/tree/main/skills/masscan commit b0a0c3ceb7

Frequently asked questions

npx skillmds@latest add sameh1200/masscan-2