Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add crazyMarky/pentest-skills --skill recon-port-scangit clone --depth 1 https://github.com/crazyMarky/pentest-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/crazymarky/pentest-skills/recon-port-scan)<a href="https://agentmods.dev/skills/crazymarky/pentest-skills/recon-port-scan"><img src="https://agentmods.dev/badge/skills/crazymarky/pentest-skills/recon-port-scan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/crazymarky/pentest-skills/recon-port-scan"><img src="https://agentmods.dev/badge/skills/crazymarky/pentest-skills/recon-port-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.02736 |
| Opus 5.5 | $0.00020 | $0.01094 |
| Sonnet 5.5 | $0.00010 | $0.00547 |
| Haiku 4.5 | $0.00005 | $0.00274 |
Grade B, and why
recon-port-scan scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **nmap** - `sudo apt install nmap` (Debian/Ubuntu) or `brew install nmap` (macOS) How it starts
The opening of the file, as written. The whole thing — 415 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Port Scanning / Reconnaissance
Authorization Warning
IMPORTANT: Port scanning without proper authorization is illegal. Always ensure you have:
- Written permission from the target system owner
- Defined scope of authorized testing
- Legal compliance with local regulations
Prerequisites
Required tools that must be installed on your system:
- nmap -
sudo apt install nmap(Debian/Ubuntu) orbrew install nmap(macOS)
Optional tools:
- masscan - High-speed port scanner
- rustscan - Modern fast scanner with nmap integration
Quick Start
Most commonly used commands for port scanning:
Fast Common Port Scan
nmap -T4 -F <target>
Quick scan of top 100 common ports.
Full Port Scan with Service Detection
nmap -sV -sC -p- <target>
Scan all 65535 ports with version detection and default scripts.
Stealth SYN Scan
sudo nmap -sS -T2 -p- <target>
Stealthy scan (requires root).
High-Speed Large Range Scan
masscan -p1-65535 <target/CIDR> --rate=10000
Fast scanning of large IP ranges.
Common Scenarios
Scenario 1: Quick Reconnaissance
When you need fast results on common ports:
nmap -T4 -F <target>
Parameters:
-T4- Aggressive timing template (faster)-F- Fast mode, scan top 100 ports<target>- IP address, hostname, or CIDR range
Example:
nmap -T4 -F 192.168.1.100
nmap -T4 -F example.com
nmap -T4 -F 192.168.1.0/24
Scenario 2: Full Port Range Discovery
When you need to find all open ports (1-65535):
nmap -p- <target>
Parameters:
-p-- Scan all 65535 ports
Example:
nmap -p- 192.168.1.100
With version detection:
nmap -sV -p- <target>
Scenario 3: Service Version Detection
When you need to identify running service versions:
nmap -sV -sC <target>
Parameters:
-sV- Probe open ports for service/version info-sC- Run default NSE scripts
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/common-services.txt 4.1 KB
- assets/top-100-ports.txt 782 B
- assets/top-1000-ports.txt 3.7 KB
- references/masscan_guide.md 6.7 KB
- references/nmap_cheatsheet.md 8.2 KB
- references/rustscan_guide.md 4.2 KB
- references/scanning_techniques.md 6.0 KB
- scripts/masscan_to_nmap.py 4.6 KB runs code
- scripts/merge_scan_results.py 9.5 KB runs code
- scripts/parse_nmap_xml.py 6.7 KB runs code
- scripts/port_scan_storage.py 4.3 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 415 lines · 49 tokens per session scan B 87329211c190
recon-port-scan is a skill published in the GitHub repository crazyMarky/pentest-skills (375 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 49 tokens to every session and 2,736 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
recon-port-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| recon-port-scancrazyMarky/pentest-skills | Skill | 375 | 5mo ago | Apache-2.0 | B | 49 | Claude Code, Codex |
| incident-response-fileanalysercrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 104 | Claude Code, Codex |
| pentest-cve-vulnerability-research-helpercrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 49 | Claude Code, Codex |
| pentest-web-enumerationcrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 101 | Codex |
| web-pentest-skillcrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 58 | Claude Code, Codex |
| pentest-hacktricks-findercrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 56 | Claude Code, Codex |
| vectorcraft-live-editcrtvrffnrt/skills | Skill | 5 | 17d ago | none | A | 31 | Claude Code, Codex |