这是一个专为渗透测试工具设计的 Model Context Protocol (MCP) 服务器,它与各类大型语言模型(LLM)客户端兼容,像 Claude Desktop、Roo Code 等支持 MCP 协议的客户端都能与之适配,能为渗透测试工作提供强大助力。
本服务器可助力你开展全面的渗透测试工作,你可以按照以下步骤进行操作。
# 创建目录
mkdir -p reports templates wordlists
pentest-tools/
├── reports/ # 用于存储扫描报告
├── templates/ # 用于报告模板
├── wordlists/ # 用于自定义词典
├── pentest-tools-mcp-server.py
├── config.json
├── requirements.txt
├── docker-compose.yml
└── Dockerfile
docker-compose up -d --build
docker-compose ps
docker-compose logs -f
uv venv
source .venv/bin/activate # 在 Windows 上:.venv\Scripts\activate
uv pip install -r requirements.txt
sudo apt-get install nmap whatweb dnsrecon theharvester ffuf dirsearch sqlmap
%APPDATA%\Claude\claude_desktop_config.json
- **MacOS/Linux**:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pentest-tools": {
"command": "docker-compose",
"args": ["up"],
"env": {
"PORT": 5005
}
}
}
}
Pentest ToolsMCPlocalhost:5005python pentest-tools-mcp-server.py scan --target <目标地址>
python pentest-tools-mcp-server.py exploit --payload <攻击载荷>
pentest-tools/
├── reports/ # 扫描结果报告存储位置
├── templates/ # 自定义报告模板文件夹
├── wordlists/ # 常用的扫描词典库
├── pentest-tools-mcp-server.py # 服务器主程序
├── config.json # 工具配置文件
├── requirements.txt # Python 依赖管理
└── docker-compose.yml# Docker 容器配置
本服务器基于 MCP 协议开发,与多种大型语言模型客户端进行交互。通过容器化或本地部署的方式,利用 Python 及相关工具实现全面的渗透测试功能。在运行过程中,会根据配置文件和用户输入的参数调用不同的工具进行扫描和测试,并生成相应的报告。
文档未提及相关许可证信息。