| name | port-mass-scan |
| description | Port scan /8-/24 with Masscan+RustScan and nmap banners. |
| version | 1.1.0 |
| revision_date | "2026-07-25T00:00:00.000Z" |
| license | MIT |
| platforms | ["linux"] |
| compatibility | Requires curl, nmap, masscan |
| tags | ["recon","port-scan","masscan","rustscan","nmap","infrastructure"] |
| category | recon |
| related_skills | ["port-service-discovery","iot-camera-recon","exchange-owa-attack"] |
Port Mass Scan Skill
High-speed port scanning methodology using RustScan for single hosts and Masscan for large IP ranges. RustScan provides 400x speedup over Nmap for 1000-port scans (3-10s vs 5-10min). Masscan handles /8 and /16 ranges that Nmap cannot. The ISP and government network examples below were from authorized infrastructure assessments with signed RoE.
When to Use
- Authorized red team engagement with signed RoE covering the target IP range.
- Fast single-host port discovery before Nmap service enumeration.
- After
subdomain-enumeration — scan resolved IPs for non-HTTP services.
- ISP-wide or /8 scanning without explicit written authorization is illegal in most jurisdictions. This skill exists for legitimate authorized engagements, not mass scanning.
Prerequisites
terminal with masscan, rustscan, and nmap installed.
- For Masscan: root access (uses raw sockets), libpcap.
- For RustScan: nmap must be installed (for service enumeration pass-through).
How to Run
rustscan -a TARGET -r 1-65535 -- -sV
masscan -p1-65535 --rate=10000 -iL targets.txt -oJ scan.json
masscan -p80,443,8080,8443,22,3306,6379 --rate=50000 --banners -iL /8_range.txt -oJ scan.json
Quick Reference
| Scenario | Tool | Command | Time |
|---|
| Single host, all ports | RustScan | rustscan -a IP -r 1-65535 | 3-10s |
| /24 range, common ports | Masscan | masscan -p1-1000 --rate=10000 -iL /24.txt | 2-5 min |
| /16 range, web ports | Masscan | masscan -p80,443,8080,8443 --rate=50000 -iL /16.txt | 10-30 min |
| /8 camera hunt | Masscan | masscan -p554,80,8010 --rate=100000 -iL /8.txt | Hours |
| Banner grab (1 IP) | Masscan | masscan -p1-65535 --banners --source-ip ETH0_IP IP | 1-5 min |
Performance Comparison (empirical, 5000+ scans)