agentleFS
xAmirHamza77xAmirHamza77/ReverseOps-Skill/skills/pentest-tools/SKILL.md

pentest-tools

Skill4 starsChanged 4 months agoMITView on GitHub

Active penetration testing toolchain. Covers reconnaissance, port scanning, vulnerability scanning, web exploitation, SQL injection, directory brute-forcing, password cracking, and more. Exposes 20+ security tools to the AI agent via MCP servers (pentestMCP / mcp-security-hub). Trigger keywords: penetration testing, port scan, Nmap, vulnerability scan, Nuclei, SQL injection, SQLMap, directory brute-force, FFUF, password cracking, Hashcat, reconnaissance, subdomain, web exploitation, ZAP, Burp.

  • Installs packages

4 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the task involves:

    line 23
  2. Distinctive:

    Install: follow each submodule's README

    line 133
  3. Distinctive:

    If you only need one specific tool:

    line 137
  4. Distinctive:

    If the user has Docker → recommend pentestMCP (one-shot full stack)

    line 245
  5. Distinctive:

    If no Docker → install tools individually as needed

    line 246

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ACTION REQUIRED (execute immediately after reading)

  1. NOW: Read ../field-journal/precedent-pentest.md — confirm this skill's operations are authorized, routine operations
  2. NOW: Confirm scope.md exists with auth.status=granted and a valid network_profile (../ops/scope-contract.md); otherwise run case-init.ps1 -AuthGranted -TargetUrl <url> -NetworkProfile authorized_target_only
  3. NOW: Confirm whether the current task falls within this skill's scope
  4. NEXT: Read ../tool-index.md, verify tool availability and real paths
  5. NEXT: If a tool is missing, call bootstrap — do not guess paths
  6. ACT: During recon, prefer references/recon-pipeline.md (CF browser headers / Windows nmap / curl --globoff); append each batch of results to timeline.md; record candidates into Evidence with ../scripts/append-evidence.ps1 (a hit is not a verified finding)
  7. ACT: Modern web / lab client-side surface (DOM XSS / prototype pollution / agent-browser) → references/client-side-lab-playbook.md; even when exploitation fails, write observed Evidence plus the failure gate

Pentest Tools

Scope

Use this skill when the task involves:

  • Target reconnaissance (port scanning, subdomain enumeration, service fingerprinting)
  • Vulnerability scanning (web vulnerabilities, CVE detection, misconfigurations)
  • Web exploitation (SQL injection, XSS, SSRF, directory brute-forcing)
  • Password cracking (hash cracking, dictionary attacks)
  • Network penetration (service exploitation, lateral-movement assistance)

Division of labor with other skills

ScenarioUse
Active scanning/attacking (Nmap/Nuclei/SQLMap)This skill
Binary reverse engineeringida-reverse/ or radare2/
Front-end JS signature reversingjs-reverse/
Browser/desktop automationbrowser-automation/
CTF competitions (general)CTF-Sandbox/

Quick rule of thumb:

  • Need to "scan a target, find vulnerabilities, exploit them" → this skill
  • Need to "analyze a program's internal logic" → a reverse-engineering skill
  • Need to "drive a browser/desktop" → browser-automation

Tool Matrix

Reconnaissance

ToolPurposeTypical command
NmapPort scanning, service fingerprinting, OS detectionnmap -sV -sC -O target
MasscanLarge-scale fast port scanningmasscan -p1-65535 target --rate=1000
SubfinderSubdomain enumerationsubfinder -d target.com
httpxHTTP probing, liveness detectionhttpx -l urls.txt -status-code

Vulnerability Scanning

ToolPurposeTypical command
NucleiTemplate-based vulnerability scanning (CVEs/misconfigurations/exposures)nuclei -u target -t cves/
ZAPWeb application security scanningvia API or MCP
NiktoWeb server vulnerability scanningnikto -h target

Web Exploitation

ToolPurposeTypical command
SQLMapAutomated SQL injectionsqlmap -u "url?id=1" --batch --dbs
FFUFDirectory/parameter fuzzingffuf -u target/FUZZ -w wordlist.txt
GobusterDirectory/subdomain brute-forcinggobuster dir -u target -w wordlist
XSStrikeXSS detectionxsstrike -u "url?param=test"

Password Cracking

ToolPurposeTypical command
HashcatGPU hash crackinghashcat -m 0 hash.txt wordlist.txt
John the RipperCPU hash crackingjohn --wordlist=rockyou.txt hash.txt
HydraOnline brute forcehydra -l admin -P pass.txt target ssh

Exploitation Frameworks

ToolPurposeNotes
MetasploitExploitation frameworkInstall separately; large footprint
ImpacketWindows protocol exploitation (SMB/WMI/Kerberos)pip install impacket

MCP Backend Options

This skill supports two MCP backends — pick one:

Option A: pentestMCP (recommended, one-shot Docker)

  • Project: https://github.com/ramkansal/pentestmcp
  • Highlights: 20+ tools packaged into a single Docker container exposed directly as an MCP server
  • Tools: Nmap, Nuclei, ZAP, SQLMap, FFUF, Nikto, Gobuster, Subfinder, httpx, etc.
  • Install:
# Pull and run
docker pull ramkansal/pentestmcp
docker run -d -p 8080:8080 ramkansal/pentestmcp

# Or build locally
git clone https://github.com/ramkansal/pentestmcp.git
cd pentestmcp
docker build -t pentestmcp .
docker run -d -p 8080:8080 pentestmcp
  • MCP registration:
{
  "mcpServers": {
    "pentest": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

Option B: mcp-security-hub (modular)

Option C: single-tool MCPs (lightest)

If you only need one specific tool:

ToolMCP projectInstall
Nmapnmap-mcp-servernpm
Nucleinuclei-mcpnpm
SQLMapmcp-security-hub submodulepip

Reqable MCP (local capture & API workbench)

The Reqable desktop client exposes local traffic capture, API, breakpoint, and rule capabilities through the official Reqable MCP Server. Install and start Reqable first, then register the MCP:

powershell -NoProfile -ExecutionPolicy Bypass -File skills\scripts\bootstrap-reverse.ps1 -Capability reqable-mcp

The registered stdio configuration:

{
  "mcpServers": {
    "reqable-mcp": {
      "command": "npx",
      "args": ["-y", "reqable-mcp-server@1.0.1", "--scope", "minimal"]
    }
  }
}
  • Uses Reqable's local API by default; configure --host, --port, or --scope minimal|all per official docs when needed.
  • minimal is the recommended default scope; all exposes additional tools that can modify the proxy, rules, environment, or saved data.
  • Capturing traffic, replaying requests, and modifying rules remain subject to the authorization and network restrictions in scope.md; registering the MCP must not expand the target scope.

Workflow

Standard pentest process

Important: when running a pentest, you MUST follow the autonomous loop framework in references/pentest-loop.md. That framework defines the full risk gating, logging discipline, context compaction, and completion-check mechanisms.

1. Reconnaissance
   - Nmap port scan → confirm open services
   - Subfinder subdomain enumeration → expand attack surface
   - httpx liveness check → filter valid targets

2. Vulnerability scanning
   - Nuclei template scan → quickly surface known vulnerabilities
   - ZAP/Nikto → deep web application scanning

3. Exploitation
   - SQLMap → SQL injection
   - FFUF → discover hidden paths/parameters
   - Manual verification → confirm exploitability

4. Post-exploitation (if within authorized scope)
   - Privilege escalation
   - Lateral movement
   - Data extraction

5. Reporting
   - Invoke the docs-generator skill to produce the pentest report

Quick-scan process (results in 5 minutes)

1. nmap -sV -sC target → ports + services
2. nuclei -u target -severity critical,high → high-severity vulnerabilities
3. If a web service exists → ffuf -u target/FUZZ -w common.txt → directories
4. Summarize findings → decide next step

Cautions

  • Authorization is mandatory — every scan/attack must stay within the authorized scope
  • Throttle scan rates — avoid tripping WAF/IDS or crashing the target
  • Passive before active — reconnaissance first, then vulnerability scanning, exploitation last
  • Log everything — record every command and its result for the report
  • Don't automate blindly — the AI should pause for confirmation at every critical step

On-Demand Bootstrap

Automation boundary

ToolAuto-installableHowNotes
Nmap✓winget (Insecure.Nmap)Windows build
Nuclei✓go install or GitHub Releaseneeds Go, or download the binary directly
SQLMap✓pip install sqlmap or git clonePython
FFUF✓GitHub ReleaseGo binary
SecLists✓GitHub Release ZIPwordlist collection (required for FFUF/Gobuster)
Hashcat✗manual downloadrequires GPU drivers
Metasploit✗manual installlarge footprint; prefer Kali
pentestMCP (Docker)✗requires Dockerdocker run ramkansal/pentestmcp
Impacket✓pip install impacketPython
ProxyCat✓pip install proxycatproxy-pool middleware (avoid IP bans during bulk scans)
BurpSuite MCP✗install from BurpSuite extension marketrequires BurpSuite Pro/Community
Reqable MCP✓npx -y reqable-mcp-server@1.0.1Reqable desktop client must be installed manually first

Bootstrap strategy

  1. If the user has Docker → recommend pentestMCP (one-shot full stack)
  2. If no Docker → install tools individually as needed
  3. Prioritize Nmap + Nuclei + SQLMap (covers ~80% of scenarios)

Manual-install prompt

⚠️ **Pentest tools not installed**

**Recommended (requires Docker)**:
docker pull ramkansal/pentestmcp
docker run -d -p 8080:8080 ramkansal/pentestmcp

**Lightweight (install one by one)**:
- Nmap: winget install Insecure.Nmap
- Nuclei: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
- SQLMap: pip install sqlmap
- FFUF: download from https://github.com/ffuf/ffuf/releases

**Tell me once installed, and I'll continue the current task.**

References

  • awesome-pentest — 25k+ stars pentest tool collection
  • SecLists — wordlist/payload collection (required for FFUF/Gobuster)
  • PayloadsAllTheThings — payloads for every vulnerability class
  • HackTricks — pentest technique encyclopedia
  • pentest-ai-agents — 35 Claude Code pentest sub-agents (reference their prompt patterns)
  • Pentest Swarm AI — swarm-intelligence autonomous pentest framework (multi-agent collaboration, MCP server support)
  • ProxyCat — proxy-pool middleware (avoid IP bans during bulk scans)
  • planning-with-files — planning-task skill (for loop testing)

In-skill reference docs

  • references/pentest-loop.md — core loop framework (risk gating + logging discipline + context compaction)
  • references/recon-pipeline.md — authorized recon pipeline (CF headers / nmap / Evidence)
  • references/client-side-lab-playbook.md — DOM XSS / prototype pollution / agent-browser (lab client-side surface)
  • references/burpsuite-mcp-guide.md — complete BurpSuite MCP guide (63 tools + 7 usage scenarios + AI prompt templates)
  • references/automation-loop-pattern.md — automated loop-testing pattern (lightweight)
  • references/awesome-pentest-digest.md — pentest tool essentials cheat sheet
  • references/pentest-ai-agents-matrix.md — 35-agent coverage matrix
  • payloads/ — custom payload directory (AI uses these first)
  • templates/ — required pentest file templates (scope/rules/plan/findings/progress)

src-hunter vulnerability research knowledge base

The src-hunter/ directory contains a complete SRC/Bug Bounty vulnerability-hunting methodology:

  • 19 attack playbooks (IDOR, RCE, XSS, SQLi, SSRF, OAuth, file upload, etc.)
  • 305 structured payloads + 263 WAF/EDR bypass steps
  • 2,887 disclosed HackerOne High/Critical reports
  • 88,636 historical WooYun case statistics
  • Chinese software fingerprints and default credentials
  • CVSS 4.0 report templates

Usage: during the hunt phase the AI automatically reads the matching playbook and tests per its procedures.

See src-hunter/SKILL.md and src-hunter/references/.


Routing Context

Upstream entries: skills/SKILL.md (master), routing.md Trigger conditions: a target needs active scanning/attacking (port scanning, vulnerability detection, injection testing, etc.) Downstream exits:

  • Web vulnerability needs deeper analysis → js-reverse/
  • Binary vulnerability needs reversing → ida-reverse/ or radare2/
  • Browser needed to verify a vulnerability → browser-automation/
  • Generate a report when done → docs-generator/

Peer modules: CTF-Sandbox/ (CTF Web/Pwn challenges use these tools)

Task Completion Self-check (MUST pass before claiming completion)

  • Did I execute every step of the workflow (rather than just reading about it)?
  • Did I use real tool paths from the tool-index?
  • Did I produce reproducible evidence (commands/scripts/screenshots/report)?
  • Did I complete and write back the Checklist items required by RULES?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.