pentest-tools
Gives your agent a toolkit for penetration testing. It helps discover information, scan networks, and find system vulnerabilities.
What it does
This tool helps test the security of computer systems and networks. It uses various tools to find information, check for weaknesses, and attempt to exploit them, acting like a digital detective.
When to use it
- ✓When you need to check if a website has any open ports that attackers could use.
- ✓When you want to look for known vulnerabilities on a web server.
- ✓When you need to test if it's possible to improperly access data from a database.
Example of what to ask your AI
“Scan example.com for vulnerabilities”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool uses programs like Nmap to see which ports are open and Nuclei to find known flaws. It can even try to exploit these flaws, like SQL injection, to see if they are real.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add zhaoxuya520/reverse-skill --skill pentest-toolsOr download just the file:
curl -L https://raw.githubusercontent.com/zhaoxuya520/reverse-skill/main/skills/pentest-tools/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
ACTION REQUIRED(读完后立刻执行)
NOW: 读取../field-journal/precedent-pentest.md— 确认本 skill 的操作是已授权的常规操作NOW: 确认 scope.md 存在且auth.status=granted、network_profile合法(../ops/scope-contract.md)。缺 scope 则跑case-init.ps1并停到用户给授权;禁止自动加-AuthGrantedNOW: 确认当前任务是否命中本 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 + 失败门闩
渗透测试工具链 (Pentest Tools)
适用范围
当任务属于以下场景时使用本 skill:
- 目标信息收集(端口扫描、子域名枚举、服务识别)
- 漏洞扫描(Web 漏洞、CVE 检测、配置错误)
- Web 渗透(SQL 注入、XSS、SSRF、目录爆破)
- 密码破解(哈希破解、字典攻击)
- 网络渗透(服务利用、横向移动辅助)
与其他 skill 的分工
| 场景 | 用什么 |
|---|---|
| 主动扫描/攻击(Nmap/Nuclei/SQLMap) | 本 skill |
| 逆向分析二进制 | ida-reverse/ 或 radare2/ |
| 前端 JS 签名逆向 | js-reverse/ |
| 浏览器/桌面自动化操作 | browser-automation/ |
| CTF 竞赛(综合) | CTF-Sandbox-Orchestrator/ |
简单判断:
- 需要"扫描目标、发现漏洞、利用漏洞" → 本 skill
- 需要"分析程序内部逻辑" → 逆向类 skill
- 需要"操作浏览器/桌面" → browser-automation
工具矩阵
信息收集
| 工具 | 用途 | 典型命令 |
|---|---|---|
| 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 |
Web 渗透
| 工具 | 用途 | 典型命令 |
|---|---|---|
| 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 |
MCP 后端选择
本 skill 支持两种 MCP 后端,选一个即可:
方案 A:pentestMCP(推荐,Docker 一键)
- 项目:https://github.com/ramkansal/pentestmcp
- 特点:20+ 工具打包成单个 Docker 容器,MCP server 直接暴露
- 工具:Nmap、Nuclei、ZAP、SQLMap、FFUF、Nikto、Gobuster、Subfinder、httpx 等
- 安装:
# 拉取并运行
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
- MCP 注册:
{
"mcpServers": {
"pentest": {
"url": "http://localhost:8080/mcp"
}
}
}
方案 B:mcp-security-hub(模块化)
- 项目:https://github.com/FuzzingLabs/mcp-security-hub
- 特点:每个工具独立 MCP server,按需启用
- 工具:Nmap、Ghidra、Nuclei、SQLMap、Hashcat
- 安装:按各子模块 README 操作
方案 C:单工具 MCP(最轻量)
如果只需要某一个工具:
| 工具 | MCP 项目 | 安装 |
|---|---|---|
| Nmap | nmap-mcp-server | npm |
| Nuclei | nuclei-mcp | npm |
| SQLMap | mcp-security-hub 子模块 | pip |
Reqable MCP(本地抓包与 API 工作台)
Reqable 桌面客户端可通过官方 Reqable MCP Server 暴露本地抓包、API、断点和规则能力。先单独安装并启动 Reqable,再登记 MCP:
powershell -NoProfile -ExecutionPolicy Bypass -File skills\scripts\bootstrap-reverse.ps1 -Capability reqable-mcp -McpHostTarget Codex
将 Codex 替换为 Claude 或 Both 可选择对应客户端;省略 -McpHostTarget 时不会写任何客户端全局配置。
登记后的 stdio 配置为:
{
"mcpServers": {
"reqable-mcp": {
"command": "npx",
"args": ["-y", "reqable-mcp-server@1.0.1", "--scope", "minimal"]
}
}
}
- 默认使用 Reqable 的本地 API;必要时按官方文档配置
--host、--port或--scope minimal|all。 minimal是推荐默认范围;all会暴露更多会改变代理、规则、环境或已保存数据的工具。- 对捕获流量、请求重放和规则修改仍须先满足
scope.md的授权与网络限制;不得因 MCP 已注册而扩大目标范围。
工作流
标准渗透流程
重要:执行渗透测试时,必须按
references/pentest-loop.md的自主循环框架运行。 该框架定义了完整的风险门控、记录规范、上下文压缩和完成检查机制。
1. 信息收集
…
FAQ
Do I need permission to use this tool?
Yes, it is essential to have explicit authorization before using any security testing tools on a system or network.
What kinds of tests can this tool perform?
It can perform information gathering, port scanning, web vulnerability searching, SQL injection attempts, password cracking, and more.
Will the tool hack into the system?
No, it is designed to test security in a controlled manner and identify weak points. Exploitation is only done to confirm vulnerabilities and always with authorization.
Details
Original description by the author
主动渗透测试工具链。覆盖信息收集、端口扫描、漏洞扫描、Web 渗透、SQL 注入、目录爆破、密码破解等场景。 通过 MCP server(pentestMCP / mcp-security-hub)将 20+ 安全工具暴露给 AI agent。 触发关键词:渗透测试、端口扫描、Nmap、漏洞扫描、Nuclei、SQL 注入、SQLMap、目录爆破、FFUF、密码破解、Hashcat、信息收集、子域名、Web 渗透、ZAP、Burp。
Popularity
- GitHub stars
- 42k
- Ranking position
- #4778
- License
- MIT
- Updated
- 9/22/2026
Comments
- …
More skills from this repository
competition-ad-certificate-abuse
Helps your agent analyze attacks on digital certificate systems. It investigates how certificates can be misused to gain access.
zhaoxuya520/reverse-skill
competition-agent-cloud
Helps your agent analyze security challenges in AI and cloud systems. It investigates how prompts, tools, and the cloud can be exploited.
zhaoxuya520/reverse-skill
competition-android-hooking
Helps your agent investigate Android applications. It analyzes how apps work internally and how they might be modified or exploited.
zhaoxuya520/reverse-skill
competition-browser-persistence
Helps your agent analyze how websites store information in your browser. It investigates cookies and other data to understand how sessions work.
zhaoxuya520/reverse-skill
Similar skills
django-security
Helps your agent implement security practices in Django applications. It focuses on authentication, authorization, and prevention against common attacks, ensuring more secure code.
affaan-m/ECC
laravel-security
Helps your agent secure Laravel applications against threats. Implements security practices for authentication, authorization, and common attack prevention.
affaan-m/ECC
module-regression
Helps your agent manage changes in large projects. Ensures code changes in one part don't break other parts.
affaan-m/ECC