MCP 渗透测试框架
一个用于渗透测试的 MCP 服务器,正在积极开发中,欢迎贡献者加入。
快速入门
前置条件
- 安装 Docker 和 Docker Compose
- Python 3.8 或更高版本
- 确保具备目标环境的网络连接和授权
安装与运行
-
克隆仓库: git clone https://github.com/allsmog/mcp-pentest.git cd mcp-pentest
-
构建 Docker 容器: docker-compose build
-
启动服务: docker-compose up -d
创建渗透测试任务
-
创建新任务: curl -X POST http://localhost:8000/api/engagements -H "Content-Type: application/json" -d '{"name": "Example Corp Assessment", "scope": {"ip_ranges": ["192.168.1.0/24"], "domains": ["example.com"]}}'
-
开始侦察扫描: curl -X POST http://localhost:8000/api/tasks -H "Content-Type: application/json" -d '{"engagement_id": "YOUR_ENGAGEMENT_ID", "tool": "theHarvester", "parameters": {"target": "example.com"}}'
-
查询 AI 助手: curl -X POST http://localhost:8000/api/query -H "Content-Type: application/json" -d '{"engagement_id": "YOUR_ENGAGEMENT_ID", "query": "What are the most promising attack vectors based on our current findings?"}'
更多细节请参考文档:API 规范文档