GhidraMCP AI Rename logo

GhidraMCP AI Rename

Community
guanyue91141

基于Ghidra逆向Mcp的快速脚本,批量自动重命名函数、批量导出函数txt文件。分析完可以调用樱桃或者cursor更有逻辑地分析。

Publisherguanyue91141
RepositoryGhidraMCP-AI-rename
LanguagePython
Forks
59
Stars
513
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    GhidraMCP AI Rename exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    513 stars and 59 forks from the linked repository.

MseeP.ai Security Assessment Badge

Ghidra逆向

9月20日更新说明

  • 新增了图形界面工具,提供更友好的用户交互体验
  • 支持通过GUI配置API密钥、模型参数和处理选项
  • 实现了任务进度可视化和实时日志显示
  • 添加了配置文件管理功能,可以保存和切换多套配置
  • 优化了批量处理逻辑,提高了重命名的稳定性和效率

UI工具使用说明

UI目录下提供了一个图形界面工具,可以更方便地配置和运行重命名任务。

image.png

打包方式

在UI目录下提供了PowerShell脚本 build.ps1用于打包GUI应用程序。该脚本会使用PyInstaller将Python代码打包成Windows可执行文件。

打包步骤:

  1. 确保已安装Python 3.10+和pip
  2. 在UI目录下运行以下命令安装依赖:
    pip install -r requirements.txt
  3. 运行打包脚本:
    .\build.ps1
  4. 打包完成后,可执行文件将位于 dist/Ghidra-AI-Rename-GUI/目录下

使用方法

  1. 运行打包好的 Ghidra-AI-Rename-GUI.exe文件
  2. 在API配置区域填写以下信息:
    • API密钥:硅基流动平台的API密钥(没有可以点击"去注册")
    • API网址:默认为 https://api.siliconflow.cn/
    • 模型名称:默认为 Qwen/Qwen2.5-72B-Instruct
  3. 在处理参数区域配置:
    • 关键词:要重命名的函数名模式,默认为 FUN_
    • 每批大小:每次处理的函数数量,默认为50
    • 处理延迟:每次处理后的延迟时间(毫秒),默认为1000
  4. 点击"刷新"按钮检查与Ghidra的连接状态
  5. 点击"开始重命名"按钮启动重命名任务
  6. 可随时点击"停止"按钮中断任务

基于GhidraMcp的快速逆向脚本(非GUI版本)

使用qwen7b的高速处理性,批量进行函数重命名。再导出文件便于ai解析。 逆向重写推荐cursor,记得给cursor配置MCP服务。

项目要求:python>3.10

在脚本目录下运行 pip install -r requirements.txt

Ghidra下载:https://github.com/NationalSecurityAgency/ghidra

JDK21+下载:https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html

樱桃下载:https://www.cherry-ai.com/download

已知樱桃1.2.8-1.2.9的MCP服务器功能有bug,请下载1.2.10或更新的版本

Ghidra安装MCP插件:

https://github.com/user-attachments/assets/75f0c176-6da1-48dc-ad96-c182eb4648c3

使用说明

208行 SK-XXXXXX改为自己的硅基流动密钥,然后运行ai_先运行仅重命名.py 等待所有的FUN_xxxx函数重命名结束后,再运行ai_再运行文件保存.py 然后配置樱桃或者cursor的MCP进行分析即可。 MCP配置中用到的python路径填已经装了依赖的路径,另一个填bridge_mcp_ghidra.py 的路径。

樱桃配置

command填写python路径,并使用双反斜杠,args填写bridge_mcp_ghidra.py的路径. image.png

VS code 的cline配置

command填写python路径,并使用双反斜杠,args填写bridge_mcp_ghidra.py的路径.

{
  "mcpServers": {
    "GhidraMCP": {
      "name": "GhidraMcp",
      "type": "stdio",
      "description": "",
      "isActive": true,
      "command": "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python313\\python.exe",
      "args": [
        "C:\\Users\\Administrator\\Documents\\GhidraMCP-AI-rename\\脚本\\bridge_mcp_ghidra.py"
      ],
      "disabled": false,
      "autoApprove": [
        "list_imports"
      ]
    }
  }
}

Cursor配置:

command填写python路径,并使用双反斜杠,args填写bridge_mcp_ghidra.py的路径.

json
{
  "mcpServers": {
    "GhidraMcp": {
      "name": "GhidraMcp",
      "type": "stdio",
      "description": "",
      "isActive": true,
      "command": "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python313\\python.exe",
      "args": [
        "C:\\Users\\Administrator\\Downloads\\Compressed\\ghidra_11.3.1_PUBLIC_20250219\\bridge_mcp_ghidra.py"
      ]
    }
  }
}

小工具

一键更换国内镜像源.exe

需要远程协助配置请发送邮件到:

text
666888@guanyue.fun

Installation

TypingMind
{
  "mcpServers": {
    "ghidramcp-ai-rename": {
      "command": "python",
      "args": [
        "path/to/your/bridge_mcp_ghidra.py"
      ]
    }
  }
}

Use GhidraMCP AI Rename MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once GhidraMCP AI Rename is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add GhidraMCP AI Rename as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the GhidraMCP AI Rename MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ghidramcp-ai-rename": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the GhidraMCP AI Rename MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the GhidraMCP AI Rename MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use GhidraMCP AI Rename to help me with this task?
GhidraMCP AI Rename
Sure. I read it.
Here is what I found using GhidraMCP AI Rename.

Frequently asked questions

What is the GhidraMCP AI Rename MCP server used for?

GhidraMCP AI Rename is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use GhidraMCP AI Rename MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use GhidraMCP AI Rename with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use GhidraMCP AI Rename MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With GhidraMCP AI Rename connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect GhidraMCP AI Rename MCP to TypingMind?

GhidraMCP AI Rename runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does GhidraMCP AI Rename MCP provide in TypingMind?

GhidraMCP AI Rename exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use GhidraMCP AI Rename MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If GhidraMCP AI Rename requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇