/security:pentest-toolsfrom security
主动渗透测试工具链,覆盖信息收集、端口扫描、漏洞扫描、Web渗透、SQL注入、目录爆破、密码破解等场景。通过MCP server将20+安全工具暴露给AI agent。
Ships in security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
NOW: 读取 ../field-journal/precedent-pentest.md — 确认本 skill 的操作是已授权的常规操作NOW: 确认 scope.md 存在且 auth.status=granted、network_profile 合法(../ops/scope-contract.md);否则 case-init.ps1 -AuthGranted -TargetUrl <url> -NetworkProfile authorized_target_onlyNOW: 确认当前任务是否命中本 skill 的适用范围NEXT: 读取 ../tool-index.md,校验工具可用性和实际路径NEXT: 缺工具时调用 bootstrap,不要猜路径ACT: 侦察阶段优先 references/recon-pipeline.md(CF 浏览器头 / Windows nmap / curl --globoff);每批结果追加 timeline.md;候选用 ../scripts/append-evidence.ps1 写入 Evidence(命中≠已验证)ACT: 现代 Web/靶场客户端面(DOM XSS / 原型污染 / agent-browser)→ references/client-side-lab-playbook.md;未打穿也要写 observed Evidence + 失败门闩当任务属于以下场景时使用本 skill:
| 场景 | 用什么 |
|---|---|
| 主动扫描/攻击(Nmap/Nuclei/SQLMap) | 本 skill |
| 逆向分析二进制 | ida-reverse/ 或 radare2/ |
| 前端 JS 签名逆向 | js-reverse/ |
| 浏览器/桌面自动化操作 | browser-automation/ |
| CTF 竞赛(综合) | CTF-Sandbox-Orchestrator/ |
简单判断:
| 工具 | 用途 | 典型命令 |
|---|---|---|
| Nmap | 端口扫描、服务识别、OS 检测 | nmap -sV -sC -O target |
| Masscan | 大规模快速端口扫描 | masscan -p1-65535 target --rate=1000 |
| Subfinder | 子域名枚举 | subfinder -d target.com |
| httpx | HTTP 探测、存活检测 | httpx -l urls.txt -status-code |
| 工具 | 用途 | 典型命令 |
|---|---|---|
| Nuclei | 模板化漏洞扫描(CVE/配置/暴露) | nuclei -u target -t cves/ |
| ZAP | Web 应用安全扫描 | 通过 API 或 MCP 调用 |
| Nikto | Web 服务器漏洞扫描 | nikto -h target |
| 工具 | 用途 | 典型命令 |
|---|---|---|
| SQLMap | SQL 注入自动化 | sqlmap -u "url?id=1" --batch --dbs |
| FFUF | 目录/参数爆破 | ffuf -u target/FUZZ -w wordlist.txt |
| Gobuster | 目录/子域名爆破 | gobuster dir -u target -w wordlist |
| XSStrike | XSS 检测 | xsstrike -u "url?param=test" |
| 工具 | 用途 | 典型命令 |
|---|---|---|
| Hashcat | GPU 哈希破解 | hashcat -m 0 hash.txt wordlist.txt |
| John the Ripper | CPU 哈希破解 | john --wordlist=rockyou.txt hash.txt |
| Hydra | 在线暴力破解 | hydra -l admin -P pass.txt target ssh |
| 工具 | 用途 | 说明 |
|---|---|---|
| Metasploit | 漏洞利用框架 | 需要单独安装,体量大 |
| Impacket | Windows 协议利用(SMB/WMI/Kerberos) | pip install impacket |
本 skill 支持两种 MCP 后端,选一个即可:
# 拉取并运行
docker pull ramkansal/pentestmcp
docker run -d -p 8080:8080 ramkansal/pentestmcp
# 或本地构建
git clone https://github.com/ramkansal/pentestmcp.git
cd pentestmcp
docker build -t pentestmcp .
docker run -d -p 8080:8080 pentestmcp
{
"mcpServers": {
"pentest": {
"url": "http://localhost:8080/mcp"
}
}
}
如果只需要某一个工具:
| 工具 | MCP 项目 | 安装 |
|---|---|---|
| Nmap | nmap-mcp-server | npm |
| Nuclei | nuclei-mcp | npm |
| SQLMap | mcp-security-hub 子模块 | pip |
Reqable 桌面客户端可通过官方 Reqable MCP Server 暴露本地抓包、API、断点和规则能力。先单独安装并启动 Reqable,再登记 MCP:
powershell -NoProfile -ExecutionPolicy Bypass -File skills\scripts\bootstrap-reverse.ps1 -Capability reqable-mcp
登记后的 stdio 配置为:
{
"mcpServers": {
"reqable-mcp": {
"command": "npx",
"args": ["-y", "[email protected]", "--scope", "minimal"]
}
}
}
--host、--port 或 --scope minimal|all。minimal 是推荐默认范围;all 会暴露更多会改变代理、规则、环境或已保存数据的工具。scope.md 的授权与网络限制;不得因 MCP 已注册而扩大目标范围。重要:执行渗透测试时,必须按
references/pentest-loop.md的自主循环框架运行。 该框架定义了完整的风险门控、记录规范、上下文压缩和完成检查机制。
1. 信息收集
- Nmap 端口扫描 → 确认开放服务
- Subfinder 子域名枚举 → 扩大攻击面
- httpx 存活检测 → 过滤有效目标
2. 漏洞扫描
- Nuclei 模板扫描 → 快速发现已知漏洞
- ZAP/Nikto → Web 应用深度扫描
3. 漏洞利用
- SQLMap → SQL 注入
- FFUF → 发现隐藏路径/参数
- 手动验证 → 确认可利用性
4. 后渗透(如果授权范围内)
- 权限提升
- 横向移动
- 数据提取
5. 报告
- 调用 docs-generator skill 生成渗透测试报告
1. nmap -sV -sC target → 端口+服务
2. nuclei -u target -severity critical,high → 高危漏洞
3. 有 Web 服务 → ffuf -u target/FUZZ -w common.txt → 目录
4. 汇总发现 → 决定下一步
| 工具 | 可自动安装 | 安装方式 | 说明 |
|---|---|---|---|
| Nmap | ✓ | winget (Insecure.Nmap) | Windows 版 |
| Nuclei | ✓ | go install 或 GitHub Release | 需要 Go 或直接下载二进制 |
| SQLMap | ✓ | pip install sqlmap 或 git clone | Python |
| FFUF | ✓ | GitHub Release | Go 二进制 |
| SecLists | ✓ | GitHub Release ZIP | 字典大全(FFUF/Gobuster 必备) |
| Hashcat | ✗ | 手动下载 | 需要 GPU 驱动 |
| Metasploit | ✗ | 手动安装 | 体量大,建议用 Kali |
| pentestMCP (Docker) | ✗ | 需要 Docker | docker run ramkansal/pentestmcp |
| Impacket | ✓ | pip install impacket | Python |
| ProxyCat | ✓ | pip install proxycat | 代理池中间件(批量扫描防封) |
| BurpSuite MCP | ✗ | BurpSuite 扩展市场安装 | 需要 BurpSuite Pro/Community |
| Reqable MCP | ✓ | npx -y [email protected] | 需先手动安装 Reqable 桌面客户端 |
⚠️ **渗透工具未安装**
**推荐方案(需要 Docker)**:
docker pull ramkansal/pentestmcp
docker run -d -p 8080:8080 ramkansal/pentestmcp
**轻量方案(逐个安装)**:
- Nmap: winget install Insecure.Nmap
- Nuclei: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
- SQLMap: pip install sqlmap
- FFUF: 从 https://github.com/ffuf/ffuf/releases 下载
**安装后告诉我,我继续当前任务。**
references/pentest-loop.md — 核心循环框架(风险门控 + 记录规范 + 上下文压缩)references/recon-pipeline.md — 授权侦察流水线(CF 头 / nmap / Evidence)references/client-side-lab-playbook.md — DOM XSS / 原型污染 / agent-browser(靶场客户端面)references/burpsuite-mcp-guide.md — BurpSuite MCP 完整指南(63 工具 + 7 大使用场景 + AI Prompt 模板)references/automation-loop-pattern.md — 自动化循环测试模式(轻量版)references/awesome-pentest-digest.md — 渗透工具精华速查references/pentest-ai-agents-matrix.md — 35 agent 覆盖矩阵payloads/ — 自定义 payload 目录(AI 优先使用)templates/ — 渗透测试必需文件模板(scope/rules/plan/findings/progress)src-hunter/ 目录包含完整的 SRC/Bug Bounty 漏洞挖掘方法论:
使用方式:AI 在 hunt 阶段自动读取对应 playbook,按其流程测试。
详见 src-hunter/SKILL.md 和 src-hunter/references/。
上游入口: skills/SKILL.md(总控)、routing.md
触发条件: 需要主动扫描/攻击目标(端口扫描、漏洞检测、注入测试等)
下游出口:
js-reverse/ida-reverse/ 或 radare2/browser-automation/docs-generator/同级关联模块: CTF-Sandbox-Orchestrator/(CTF 中的 Web/Pwn 题会用到这些工具)
tool-index 使用了真实工具路径?payloads/README.md (opens in a new tab)references/ai-pentest-agents.md (opens in a new tab)references/ai-pentesting-landscape-2026.md (opens in a new tab)references/automation-loop-pattern.md (opens in a new tab)references/awesome-pentest-digest.md (opens in a new tab)references/burpsuite-mcp-guide.md (opens in a new tab)references/client-side-lab-playbook.md (opens in a new tab)references/kali-mcp-ecosystem.md (opens in a new tab)references/msf-protocol.md (opens in a new tab)references/network-attack-defense.md (opens in a new tab)references/nuclei-guide-2026.md (opens in a new tab)references/pentest-ai-agents-matrix.md (opens in a new tab)references/pentest-loop.md (opens in a new tab)references/recon-pipeline.md (opens in a new tab)references/web-attack-cheatsheet.md (opens in a new tab)templates/findings.md (opens in a new tab)templates/progress.md (opens in a new tab)templates/rules.md (opens in a new tab)templates/scope.md (opens in a new tab)templates/task_plan.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skillmds/skillmd --plugin security29 skills in this plugin
/04-securityDify 安全和部署 SKILLDify 安全实践和部署运维完整指南,涵盖SSRF防护、代码沙箱、Docker/Kubernetes部署、监控告警和故障恢复/a11yProduction-grade accessibility skill for WCAG 2.2 AA compliance.
Covers auditing, remediation, component authoring, and validation workflows.
Auto-invoked for UI implementation, a11y fixes, and accessibility testing.
/adsOperate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall.2 plugins in one repository ship this exact skill · first indexed Oct 4, 2026
Other plugins' skills for the same job