Skillpedia
الموصّلات (MCP)6.5k · #14016

kali-mcp-bridge

ما الذي تفعله

تشرح هذه المهارة كيفية إعداد جسر يتيح لوكيل الذكاء الاصطناعي تشغيل أدوات اختبار Kali Linux بطريقة مضبوطة. وهي موجهة لمختبري الأمان الذين يعملون فقط على الأنظمة المصرح لهم باختبارها.

متى تستخدمها

  • ✓عندما يحتاج اختبار مصرح به إلى أن يشغّل وكيل الذكاء الاصطناعي أدوات Kali عبر واجهة منظمة.
  • ✓عندما تحتاج إلى إعداد نفق آمن بين جهاز المختبر وخادم Kali.
  • ✓عندما ستُعرض مخرجات Kali على الذكاء الاصطناعي وتحتاج إلى قواعد معالجة آمنة.

رابط المهارة

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/decepticon/kali-mcp-bridge/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك مساعدتي في ربط مساعد الذكاء الاصطناعي لدينا بخادم Kali لاختبار مصرح به، عبر نفق آمن؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يُعد الوكيل خادماً على جهاز Kali، ويوصله عبر نفق مشفّر، ويمرر استدعاءات الأدوات عبر واجهة قياسية تعيد نتائج منظمة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Kali MCP Bridge — Operator Playbook

Drive Kali Linux tools (nmap, gobuster, sqlmap, metasploit, hydra, john, nikto, enum4linux, raw commands) through a FastMCP bridge during authorized engagements. This skill covers server deployment, SSH tunnel hardening, tool-call interface, and the critical prompt-injection hygiene rules required when Kali output re-enters the AI context.

AUTHORIZED USE ONLY. This skill is for use exclusively on systems you own or have explicit written authorization to test. Unauthorized use is illegal.


1. Architecture

┌──────────────┐    MCP stdio    ┌─────────────────┐    HTTP/REST    ┌──────────────────┐
│ Decepticon   │ ◄────────────► │ client.py (MCP) │ ◄────────────► │ server.py (Kali) │
│ (AI agent)   │                 │ on attacker host│                 │ Flask API :5000  │
└──────────────┘                 └─────────────────┘                 └──────────────────┘
  • server.py: Flask API on Kali, wraps each tool, exposes /api/tools/<tool> and /api/command.
  • client.py: FastMCP server that registers tools and relays calls to server.py via HTTP.
  • AI agent: Calls MCP tools; receives structured JSON output.

2. Deployment

2a. Kali server (on engagement jump box / VM)

# OS package (Kali 2024.1+)
sudo apt install mcp-kali-server
kali-server-mcp --ip 127.0.0.1 --port 5000   # localhost only — NEVER bind 0.0.0.0

# OR bleeding edge
git clone https://github.com/Wh0am123/MCP-Kali-Server.git
cd MCP-Kali-Server
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
./server.py --ip 127.0.0.1 --port 5000 --debug

Verify health:

curl -s http://127.0.0.1:5000/health | python3 -m json.tool
# Expected: {"status": "healthy", "all_essential_tools_available": true, "tools_status": {...}}

2b. SSH tunnel (when client and server are on different machines)

Always route through SSH — never expose server.py directly on a routable interface.

# On attacker/orchestrator host — forward local :5000 to Kali :5000
ssh -N -L 5000:localhost:5000 <user>@<KALI_IP>

# Keep tunnel alive for long engagements
ssh -N -o ServerAliveInterval=60 -o ServerAliveCountMax=3 \
    -L 5000:localhost:5000 <user>@<KALI_IP>

2c. MCP client registration (Claude Desktop / Decepticon)

claude_desktop_config.json or equivalent:

{
  "mcpServers": {
    "kali": {
      "command": "python3",
      "args": ["/abs/path/to/client.py", "--server", "http://127.0.0.1:5000"],
      "timeout": 300
    }
  }
}

3. Tool Call Reference

All tools return {"success": bool, "output": str, ...}. Check success before using output.

3.1 nmap_scan

target: str           # IP, hostname, CIDR
scan_type: str        # "-sV" (default), "-sS", "-sU", "-sC", "-A"
ports: str            # "22,80,443" or "1-1024" (empty = default)
additional_args: str  # "-T2 -oX /tmp/scan.xml"

3.2 gobuster_scan

url: str              # "http://target.local"
mode: str             # "dir" (default), "dns", "vhost", "fuzz"
wordlist: str         # "/usr/share/wordlists/dirb/common.txt"
additional_args: str  # "-x php,html -o /tmp/gobuster.txt"

3.3 dirb_scan

url: str
wordlist: str
additional_args: str  # "-r -z 100"    (-z = ms delay between requests)

3.4 nikto_scan

target: str           # URL or IP
additional_args: str  # "-Tuning 1234" (1=files, 2=misconfigs, 3=info, 4=inject)

3.5 sqlmap_scan

url: str              # "http://target/page?id=1"
data: str             # POST body: "user=foo&pass=bar" (empty for GET)
additional_args: str  # "--level=3 --risk=2 --batch --dbs"

3.6 metasploit_run

module: str           # "auxiliary/scanner/portscan/tcp"
options: dict         # {"RHOSTS": "10.0.0.1", "PORTS": "22,80"}

Common module patterns:

# SMB version detection
module: "auxiliary/scanner/smb/smb_version"
options: {"RHOSTS": "<target>", "THREADS": "4"}

# EternalBlue check (scan only — do NOT exploit without explicit RoE auth)
module: "auxiliary/scanner/smb/smb_ms17_010"
options: {"RHOSTS": "<target>"}

3.7 hydra_attack

target: str           # IP or hostname
service: str          # "ssh", "ftp", "http-post-form", "smb"
username: str         # single user (mutually exclusive with username_file)
username_file: str    # path to userlist
password: str         # single pass
password_file: str    # "/usr/share/wordlists/rockyou.txt"
additional_args: str  # "-t 4 -V" (
الأسئلة الشائعة

هل يمكن استخدامها على أي نظام؟

لا. المهارة للأنظمة التي تملكها أو لديك إذن خطي باختبارها.

لماذا يهم إعداد النفق؟

تؤكد المهارة إبقاء خادم Kali مربوطاً بالمضيف المحلي (localhost) وقابلاً للوصول فقط عبر نفق محمي.

ما هي نظافة حقن الأوامر؟

قواعد للتعامل مع مخرجات الأدوات، حتى لا يستطيع النص داخل نتائج الفحص توجيه الذكاء الاصطناعي.

التفاصيل

الوصف الأصلي من المؤلف

Deploy and drive Kali Linux tools via MCP-Kali-Server — structured tool-call interface, SSH tunnel setup, prompt-injection hygiene for AI-assisted engagements.

repo: BitterSecurity/Decepticon

الشعبية

نجوم GitHub
6.5k
الترتيب
#14016
الترخيص
Apache-2.0
آخر تحديث
1‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة