Docker(⑤Kali Linux-HexStrike AI安装)

卸载 WSL 里的 Ubuntu

复制代码
wsl --unregister Ubuntu

查看当前已安装的发行版

复制代码
wsl --list --verbose

下载kali-linux

bash 复制代码
wsl --install -d kali-linux

Kali 服务端安装

bash 复制代码
sudo apt update && sudo apt upgrade -y
sudo apt install python3 python3-venv python3-pip git -y

克隆源码 & 创建虚拟环境

bash 复制代码
git clone https://github.com/0x4m4/hexstrike-ai.git
cd hexstrike-ai

# 创建虚拟环境(避免依赖冲突)
python3 -m venv hexstrike-env
source hexstrike-env/bin/activate

安装依赖

css 复制代码
pip install -r requirements.txt

启动服务端

css 复制代码
python3 hexstrike_server.py

WSL 启动 HexStrike AI 服务端(虚拟环境版)

复制代码
# 1. 进入 WSL Kali
wsl -d kali-linux

# 2. 切换到项目目录
cd /home/xiepu/HexStrike/hexstrike-ai/

# 3. 激活虚拟环境
source /home/xiepu/HexStrike/hexstrike-ai/hexstrike-env/bin/activate

# 4. 启动服务端
python3 /home/xiepu/HexStrike/hexstrike-ai/hexstrike_server.py

cursor配置

点击右上角的设置----->mcp

mcp.json

最稳的写法(直接用你的用户名 + bash + 激活 venv)

css 复制代码
{
  "mcpServers": {
    "hexstrike-ai": {
      "command": "wsl",
      "args": [
        "-d", "kali-linux",
        "-u", "xiepu",
        "bash",
        "-lc",
        "source /home/xiepu/HexStrike/hexstrike-ai/hexstrike-env/bin/activate && python3 /home/xiepu/HexStrike/hexstrike-ai/hexstrike_mcp.py --server http://172.22.105.88:8888"
      ],
      "description": "HexStrike AI v6.0 - WSL venv mode (bash)",
      "timeout": 300,
      "alwaysAllow": []
    }
  }
}

检测MCP是否能连通

在 Windows PowerShell:

css 复制代码
Test-NetConnection -ComputerName 172.22.105.88 -Port 8888

TcpTestSucceeded: True → 网络通了

相关推荐
沐雪轻挽萤18 小时前
无人系统:Ubuntu 操作系统全景架构与实战工程指南
linux·运维·ubuntu
白緢18 小时前
嵌入式 Linux + 内核开发高频问题及排查
java·linux·运维
学编程就要猛18 小时前
JavaEE初阶:网络编程
运维·服务器·网络
蜡笔小新..18 小时前
Linux下Matplotlib使用Times New Roman字体的解决方案
linux·运维·matplotlib
飞yu流星18 小时前
文件压缩、文本内容、文本编辑
运维·服务器
洪流之源18 小时前
图像格式转换与内存对齐详解
linux
二宝哥18 小时前
Failed connect to mirrorlist.centos.org:80; Connection refused
linux·运维·centos
humors22119 小时前
一些安全类网站(不定期更新)
linux·网络·windows·安全·黑客·白帽
Kk.080219 小时前
Linux(九)fork复制进程与写时拷贝技术
linux·运维·服务器
一个人旅程~19 小时前
双系统时windows如何读取linux ext4格式硬盘分区?
linux·windows·经验分享·电脑