entrovyx/hermes-agent-offsec/port-mass-scan
Claude Code and agent skill by entrovyx/hermes-agent-offsec
- community
Checking that the SKILL.md file is still in the repository.
Port scan /8-/24 with Masscan+RustScan and nmap banners.
Install
npx vskill@latest install entrovyx/hermes-agent-offsec/port-mass-scanSKILL.md
The same SKILL.md was published earlier as entrovyx/hermes-agent-offsec/port-mass-scan.
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. Battle-tested on 5000+ scans across Brazilian ISPs, PRODERJ government networks, and OVH cloud infrastructure.
When to Use
- Scanning a /24 or larger IP range (Masscan territory — Nmap would take days).
- Fast single-host port discovery before Nmap service enumeration.
- Hunting for specific services across ISP blocks (RTSP cameras, MySQL, Redis, SSH).
- After
subdomain-enumeration— scan resolved IPs for non-HTTP services. - After
deep-invade— expand attack surface beyond web ports.
Prerequisites
terminaltool 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
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)
| Tool | 1000 ports (1 host) | /24 (1000 ports each) | /8 (web ports) | Accuracy | |
|---|---|---|---|---|---|
| Nmap | 5-10 min | ~30 min | Impossible (days) | 99% | |
| RustScan | 3-10s | 15-30s | ~2 min | 98% (then Nmap -sV) | |
| Masscan | 15-20s | 2-5 min | 30-60 min | 99% (TCP) |
Procedure
RustScan — Single Host Fast Discovery
Masscan — Large Range Scanning
Masscan — Banner Grabbing (service identification)
Masscan — IP Camera Hunting (RTSP port 554)
Sharding — Distribute Across N Machines
Real Production Results
PRODERJ Network (/24 subnet, 187.62.129.0/24)
- 40+ IPs with active services across 18 government agencies
- Systems mapped: SEEDUC (Matricula Facil on .4,.6,.7,.8), AGENERSA (Joomla on .46), GLPI (.40), ITERJ (.47), DETRO (.57,.58), VOX (.69), Tomcat (.73), IIS 6.0 (.53)
- PHP 5.2.11 on Windows 2008R2 exposed at .128.54
- Apache 2.2 Win32 "It works!" exposed at .129.115
Engebras Radar Fleet (500+ IPs across Claro 3G/4G)
- 502 radar IPs identified via Masscan on port 5000 (Werkzeug banner)
- 2 Werkzeug versions: 3.1.3 (Python 3.10.12) and 2.0.3 (Python 3.6.9 EOL)
- 75 radars also exposed SSH on port 22 (OpenSSH 7.6p1) + nginx on 80
Camera Hunting (Brazil, Shodan + Masscan)
- 99,428 RTSP (port 554) devices in Brazil (Shodan stats)
- Axis P1378-LE at 187.141.142.149:8010 — config dump of 988 parameters unauthenticated
- Intelbras RX 1500 at 45.187.140.96
Pitfalls
- Masscan requires root. Uses raw sockets. Run as root or with
sudo. - Rate > 100k may trigger IDS/IPS. Use
--rate=50000or lower for stealth. Use-T4equivalent by setting appropriate--rate. - Banner grabbing kills connections. Without
--source-ip, Masscan must complete a full TCP handshake which tears down the connection. Use the two-phase approach (Masscan ports → Nmap services) for reliable service detection. - UDP scanning is experimental. Masscan UDP support is limited. Use Nmap
-sUfor UDP. - Ctrl+C auto-saves. Masscan saves progress on interrupt. Resume with
--resume paused.conf. - `--excludefile` is critical. Always exclude your own IPs and RFC 1918 ranges to avoid scanning yourself.
Verification
- RustScan: open ports must be confirmed with Nmap
-sVfor service version. - Masscan: results must be deduplicated (Masscan may report same port multiple times from retransmissions).
- Banner grab: service versions must match between Masscan banners and Nmap probes.
- All open TCP ports must have a corresponding service identified (no "unknown" ports).
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/offsec/recon/port-mass-scan/SKILL.md
Popularity
- Repository stars
- 11
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/entrovyx/hermes-agent-offsec/port-mass-scan)