作者:LAKSHMIKANTHAN K (letchupkt)
Kali MCP Server 是一个革命性的基于人工智能的网络安全平台,它弥合了人工智能和渗透测试之间的差距。这个全面的系统通过多个AI接口直接集成了55多种专业安全工具。
🔗 仓库地址:https://github.com/letchupkt/kali-mcp.git
https://github.com/user-attachments/assets/dc93b71d-9a4a-4ad5-8079-2c26c04e5397
https://github.com/user-attachments/assets/3ec06ff8-0bdf-4ad5-be71-2ec490b7ee27
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ AI 客户端 │ │ MCP 服务器 │ │ Kali 服务器 │
│ │ │ │ │ │
│ • Claude │◄──►│ • 工具映射 │◄──►│ • 工具执行 │
│ • 5ire │ │ • 参数处理 │ │ • 结果处理 │
│ • Ollama │ │ • 结果格式化 │ │ • 健康检查 │
│ • 自定义 │ │ │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
git clone https://github.com/letchupkt/kali-mcp.git
cd kali-mcp
# 将安装脚本设置为可执行
chmod +x install_tools.sh
# 运行全面工具安装(耗时15-30分钟)
sudo ./install_tools.sh
安装内容:
pip3 install -r requirements.txt
python3 kali_server.py
预期输出:
======================================================================
🚀 KALI LINUX API SERVER - BUG HUNTING ARSENAL
👨💻 作者:LAKSHMIKANTHAN K (letchupkt)
© 2025 LAKSHMIKANTHAN K (letchupkt)
======================================================================
INFO:__main__:正在启动Kali Linux工具API服务器,端口5000
INFO:__main__:25种以上安全工具已准备好进行漏洞猎捕和渗透测试
======================================================================
* 在所有地址上运行 (0.0.0.0)
* 在http://127.0.0.1:5000上运行
* 在http://192.168.1.100:5000上运行
设置:
编辑Claude Desktop配置:
# Windows
C:\Users\USERNAME\AppData\Roaming\Claude\claude_desktop_config.json
# macOS
~/Library/Application Support/Claude/claude_desktop_config.json
添加MCP服务器配置:
{
"mcpServers": {
"kali_mcp": {
"command": "python3",
"args": [
"/绝对路径/to/mcp_server.py",
"--server",
"http://KALI_IP:5000"
]
}
}
}
重启Claude Desktop
使用示例:
您:"对example.com进行全面的子域枚举"
Claude:我将帮助您使用多个工具对example.com进行子域枚举。
[执行subfinder_scan、sublister_scan、amass_scan、assetfinder_scan]
结果显示在所有工具中发现了47个独特的子域...
设置:
命令:python3 /绝对路径/to/mcp_server.py http://KALI_IP:5000
设置:
# 安装Ollama
curl -fsSL https://ollama.com/install.sh | sh
# 拉取一个强大的模型
ollama pull llama3.2
# 或者为了更好的性能:
ollama pull codellama:13b
# 启动Ollama客户端
python3 ollama_client.py --kali-server http://KALI_IP:5000 --model llama3.2
交互会话:
======================================================================
🚀 KALI MCP SERVER - BUG HUNTING ARSENAL
👨💻 作者:LAKSHMIKANTHAN K (letchupkt)
© 2025 LAKSHMIKANTHAN K (letchupkt)
======================================================================
🤖 模型:llama3.2
🔗 Kali服务器:http://192.168.1.100:5000
======================================================================
🎯 漏洞猎捕工具箱已就绪!
📋 输入'help'查看可用工具和示例
🔧 输入'tools'列出所有可用的安全工具
❌ 输入'exit'或'quit'结束会话
======================================================================
🎯 您:枚举example.com的子域并检查接管情况
🔧 正在执行检测到的工具...
⚡ 正在使用参数运行subfinder:{'domain': 'example.com'}
🔧 **SUBFINDER 结果**
==================================================
📋 **输出:**
admin.example.com api.example.com blog.example.com dev.example.com mail.example.com ...
⚡ 正在使用参数运行subzy:{'target': 'example.com'}
🔧 **SUBZY 结果**
==================================================
📋 **输出:**
[VULNERABLE] dev.example.com - GitHub Pages接管可能 [SAFE] admin.example.com - 未检测到接管 ...
🤖 助手:我在example.com中发现了23个子域,并在dev.example.com上找到了一个潜在的GitHub Pages接管漏洞。接下来你应该这样做:
1. 验证GitHub Pages接管是否存在对应的存储库
2. 使用httpx探测活动子域以检测技术
3. 对活跃的服务运行nuclei扫描
你想让我继续这些步骤吗?
AI提示:
"对target.com进行全面侦察,包括子域枚举、HTTP探测、内容发现和漏洞扫描"
执行流程:
子域发现
subfinder -d target.comsublister -d target.comamass enum -d target.comassetfinder target.comHTTP服务探测
httpx -l subdomains.txt -title -tech-detect -status-codekatana -u target.com -depth 3内容发现
ffuf -u https://target.com/FUZZ -w wordlist.txtferoxbuster -u https://target.comgobuster dir -u https://target.com漏洞扫描
nuclei -l live_urls.txt -t cves,exposuresnikto -h target.comAI提示:
"检查target.com是否有子域接管漏洞"
执行流程:
子域枚举
接管检测
subzy run --targets subdomains.txtsubjack -w subdomains.txt -t 100 -timeout 30 -o results.txt验证
AI提示:
"测试https://webapp.com是否有Web应用程序漏洞"
执行流程:
爬虫与蜘蛛
katana -u https://webapp.comgospider -s https://webapp.comhakrawler -url https://webapp.com参数发现
arjun -u https://webapp.comparamspider -d webapp.com漏洞测试
dalfox url https://webapp.com(XSS)crlfuzz -u https://webapp.com(CRLF)sqlmap -u https://webapp.com/page?id=1(SQL注入)nuclei -u https://webapp.com -t web-vulnerabilitiesAI提示:
"对target.com进行全面的DNS枚举和基础设施映射"
执行流程:
被动子域发现
subfinder -d target.comchaos -d target.comgithub-subdomains -d target.com主动DNS暴力破解
shuffledns -d target.com -w wordlist.txtpuredns bruteforce wordlist.txt target.comDNS解析和验证
dnsx -l subdomains.txt -resp -a -cnamealterx -l subdomains.txt | dnsx基础设施分析
tlsx -l subdomains.txt -san -cncdncheck -l subdomains.txtasnmap -d target.commapcidr -cidr 192.168.1.0/24AI提示:
"扫描target.com的开放端口并识别运行的服务"
执行流程:
快速端口发现
naabu -host target.com -top-ports 1000rustscan -a target.com全面端口扫描
masscan target.com -p1-65535 --rate=10000服务检测
nmap -sCV -p 80,443,8080 target.comhttpx -l ports.txt -title -tech-detectAI提示:
"发现target.com的所有历史URL和端点"
执行流程:
历史URL发现
echo "target.com" | waybackurlsecho "target.com" | gauecho "target.com" | gauplusURL解析与过滤
cat urls.txt | unfurl domainscat urls.txt | unfurl pathscat urls.txt | gf xss参数操作
cat urls.txt | qsreplace "FUZZ"cat urls.txt | anew unique_urls.txtAI提示:
"使用搜索引擎发现target.com的暴露资产"
执行流程:
多引擎搜索
uncover -q "target.com" -e shodan,censys,fofashosubgo -d target.com -s SHODAN_KEY结果处理
cat results.txt | httpx -title -status-codecat results.txt | naabu -top-ports 100通知
echo "扫描完成!" | notify -provider slacksubfinder -d example.comsublist3r -d example.comamass enum -d example.comassetfinder example.comsubzy run --targets subdomains.txtsubjack -w subdomains.txt