调试桥接服务

x64dbg MCP是一个桥接各种LLMS(如Claude和Cursor)与x64dbg调试器的服务器,通过提示提供对调试应用程序的直接访问。

  • by Wasdubya
  • C++
  • 本地部署
  • 604 星标
  • 更新于
在 GitHub 查看 wasdubya/x64dbgmcp

使用说明

x64dbg MCP

An MCP server that can bridge various LLMS (Claude and Cursor tested) with the x64dbg debugger, providing direct access to debugging applications through prompts.

Features (Build from Source for Latest)

  • 40+x64dbg SDK工具 -提供对SDK为智能调试提供的几乎所有调试功能的访问。
  • 跨架构支持 -适用于x64dbg和x32dbg。
  • API兼容性 -可使用python文件中给出的args从cmd运行。

Quick Setup in 3 Steps

  1. 下载插件
  • 从此仓库的构建/发布目录中抓取.dp64或.dp32
  • 复制到本地:[x64dbg_dir]/release/x64/plugins/
  1. 配置Claude桌面
  • 从这个repos src目录复制x64dbgmcp.py,确保 pip install mcp requests
  • 将本地claude_desktop_config.json的路径更新为x64dbgmcp.py
{
  "mcpServers": {
    "x64dbg": {
      "command": "Path\\To\\Python",
      "args": [
        "Path\\to\\x64dbg.py"
      ]
    }
  }
}
  1. 开始调试
    • 启动x64dbg
    • 启动克劳德桌面
    • 检查插件是否已成功加载(日志为x64dbg中的ALT+L)

Build from Source for Latest Features!

** CMake and MSVC should be installed and on PATH **
  • 克隆https://github.com/wasdubya/x64dbgmcp
  • cd x64dbgmcp
  • cmake-S。-B build(将自动解析pluginsdk,因此无需担心依赖关系。)
  • cmake--build build--target all_plugins--config Release(将构建插件的32位和64位版本)

提示

  1. 使用--target all_plugins参数指定x32和x64,否则使用-A标志区分x64或Win32版本。例如,32位构建将是:
  • cmake-S。-B build32-A Win32-DBUILD_BOTH_ARCHES=OFF
  • cmake--构建build32-配置发布

Usage Examples

登记检查:

"What's the current value of RAX and RIP registers?"

模式搜索:

"Find the pattern '48 8B 05' in the current module"

示例来自 光标

更多用法

  • 如果你没有提供你正在使用的模型以及你的exe所在的上下文,如果它崩溃或挂起,它将无法重新启动二进制文件。因此,请为它提供二进制文件的完整路径,以便它可以调用CMDEXEC函数,如“init C:\Absolute\path\to_EXE”。
  • GetModuleBase是模型的最佳起点,因此它将查询正确的地址,x64dbg不会对超出范围的地址做出响应。
  • 如果担心令牌数量过多,请尝试 净空高度。它是一个代理,可以放置在插件和LLM MCP python代理之间。

Enjoy Automated Debugging!