SecPluger v2-简化Python版本
Kali Linux的AI驱动渗透测试工作流自动化
SecPluger通过添加工作流自动化、证据管理和专业报告功能扩展了MCP Kali Server。
SecPluger添加了什么
🎯 MCP Kali服务器没有的功能
- 工作流程自动化 -将渗透测试工作流保存并重用为JSON模板
- 可视化工作流生成器 -创建多步骤工作流的简单GUI
- 证据收集 -自动保存所有工具输出和屏幕截图
- 查找数据库 -带有CVSS评分和跟踪功能的SQLite数据库
- 专业报告 -使用模板生成HTML/PDF报告
- 多目标支持 -从CSV对多个目标运行工作流
- 调度 -按计划或在后台运行工作流
- 条件逻辑 -If/else在工作流中分支
- 错误处理 -重试逻辑和优雅的错误恢复
- 内置扫描仪套件 -网络爬虫、模糊器和漏洞扫描程序(不需要Burp Suite!)
- 动态工具管理 -自动检测36+Kali工具,建议安装,Claude帮助安装缺失的工具
建筑
SecPluger (Python Application)
├── GUI (tkinter) - Visual workflow designer
├── Workflow Engine - Execute workflows with logic
├── MCP Server (built-in) - Claude can help via MCP
├── Scanner Suite - Crawler, Fuzzer, Vuln Scanner
├── Proxy (mitmproxy) - HTTP/HTTPS interception
├── Evidence Manager - Auto-save outputs
├── Finding Database (SQLite) - Track vulnerabilities
├── Report Generator - HTML/PDF reports
└── Kali Tools Integration - Direct subprocess calls快速开始
# Install dependencies
pip install -r requirements.txt
# Run SecPluger
python3 src/main.py先决条件
- Python 3.10+
- Kali Linux(或类似的安全工具)
- 可选:用于MCP集成的Claude Desktop
项目结构
secpluger-v2/
├── src/
│ ├── main.py # Entry point
│ ├── gui/ # GUI components
│ │ ├── main_window.py # Main application window
│ │ ├── workflow_editor.py # Workflow designer
│ │ ├── evidence_viewer.py # Evidence browser
│ │ └── report_viewer.py # Report viewer
│ ├── engine/ # Workflow execution
│ │ ├── workflow_engine.py # Core execution logic
│ │ ├── node_executor.py # Node handlers
│ │ └── scheduler.py # Workflow scheduling
│ ├── mcp/ # MCP server
│ │ ├── secpluger_mcp_server.py # MCP protocol implementation
│ │ └── mcp_monitor.py # Workflow recorder
│ ├── scanner/ # Built-in scanner suite
│ │ ├── web_crawler.py # Website crawler (like Burp Spider)
│ │ ├── fuzzer.py # Parameter fuzzer (like Burp Intruder)
│ │ └── vulnerability_scanner.py # Vuln scanner (nuclei/wapiti/nikto)
│ ├── proxy/ # HTTP/HTTPS proxy
│ │ └── mitmproxy_controller.py # mitmproxy integration
│ ├── database/ # SQLite database
│ │ ├── models.py # Data models
│ │ └── db.py # Database manager
│ └── utils/ # Utilities
│ ├── report_gen.py # Report generator
│ ├── evidence.py # Evidence collector
│ └── tools.py # Kali tool wrappers
├── workflows/ # Saved workflows (JSON)
├── evidence/ # Evidence storage
├── reports/ # Generated reports
├── templates/ # Report templates
├── docs/ # Documentation
│ └── SCANNER_GUIDE.md # Scanner usage guide
└── requirements.txt # Python dependencies用法
扫描工具(新!)
SecPluger包括用于web应用程序测试的完整扫描套件:
# Via MCP (with Claude Code)
crawl_website(url="http://target.com", max_depth=2, max_pages=50)
scan_vulnerabilities(target="http://target.com", scan_type="quick")
fuzz_parameter(url="http://target.com/page?id=1", parameter="id", attack_type="sqli")
# One-click complete test
full_security_test(target="http://target.com")特性:
- Web爬虫-发现页面、表单和参数
- 引信-使用SQLi、XSS和其他有效载荷测试参数
- 漏洞扫描器-集成nucleus、wapiti、nikto、sqlmap
- 证据收集-所有结果自动保存
看 docs/SCANNER_GUIDE.md 以获取完整的文档。
1.创建工作流
使用GUI直观地创建工作流,或手动创建JSON:
{
"name": "Web Application Scan",
"description": "Basic web app vulnerability scan",
"nodes": [
{"id": "1", "type": "nmap", "data": {"target": "{{TARGET}}", "ports": "80,443"}},
{"id": "2", "type": "gobuster", "data": {"url": "http://{{TARGET}}"}},
{"id": "3", "type": "sqlmap", "data": {"url": "http://{{TARGET}}"}}
],
"edges": [
{"from": "1", "to": "2"},
{"from": "2", "to": "3"}
]
}2.执行工作流
from src.engine.workflow_engine import WorkflowEngine
engine = WorkflowEngine()
engine.load_workflow("workflows/web_scan.json")
engine.execute(target="example.com")3.查看结果
- 证据:
evidence/2025-10-23_example.com/ - 报告:
reports/2025-10-23_example.com_report.html - 结果:在GUI中查看或查询SQLite数据库
与MCP Kali服务器集成
SecPluger可以使用MCP Kali服务器作为工具执行的后端:
- 安装MCP Kali服务器:
sudo apt install mcp-kali-server - 配置SecPluger以使用它:编辑
config.json - SecPluger将通过MCP Kali服务器代理命令
或者使用内置的直接执行(不需要MCP Kali服务器)。
许可证
MIT许可证-请参阅许可证文件
归因
该项目的灵感来源于并旨在与以下项目合作:
- MCP Kali服务器 (MIT许可证)
______________________________________________________________________
专为网络安全社区打造
