guanyue91141/GhidraMCP-AI-rename
基于Ghidra逆向Mcp的快速脚本,批量自动重命名函数、批量导出函数txt文件。分析完可以调用樱桃或者cursor更有逻辑地分析。
What it solves
逆向工程中Ghidra生成的默认函数名(如FUN_xxxx)难以理解,手动重命名耗时且容易出错。这个项目利用AI模型自动分析函数行为并批量重命名,同时通过MCP(模型上下文协议)桥接,让AI助手(如Cursor、Cherry)能直接读取Ghidra数据,加速逆向分析。
How it works
项目提供Python脚本,通过Ghidra的MCP插件与Ghidra交互。脚本先调用AI模型(默认使用Qwen2.5-72B-Instruct,通过硅基流动平台API)对一批函数(默认50个)进行分析,根据函数逻辑生成有意义的名字,然后批量重命名。完成重命名后,再运行另一个脚本保存文件。同时,项目包含一个桥接脚本(bridge_mcp_ghidra.py),可作为MCP服务器,让支持MCP的AI客户端(如Cursor、Cherry、VS Code的Cline)连接Ghidra,直接获取导入列表等信息。还提供GUI版本(Ghidra-AI-Rename-GUI.exe),可配置API密钥、模型参数、批大小等,并显示实时日志。
Who it’s for
面向使用Ghidra进行逆向分析的工程师或安全研究人员,尤其是需要快速理解大量未知函数且希望利用AI辅助分析的用户。适合已掌握Ghidra基础、熟悉MCP配置的开发者,也提供GUI简化操作。
Highlights
- 利用AI模型自动生成语义化函数名,替代手动重命名
- 支持批量处理(可设置批大小和延迟),提升效率
- 提供GUI工具,配置直观,支持任务进度可视化和实时日志
- 内置MCP桥接,无缝对接Cursor、Cherry等AI编程工具
- 提供一键更换国内镜像源的小工具,方便安装依赖
Related
- Project
chrisblattman/claudeblattmanA free, MIT-licensed repo of AI guides and starter tools for non-coders, including a seven-skill starter kit for Claude Code and Codex, a skill library, and website source. Early-stage (v0.3.1, testing pending).
- Project
punkpeye/awesome-mcp-devtoolsAn awesome list of developer tools, SDKs, libraries, utilities, and resources for working with Model Context Protocol (MCP) servers. It helps developers find the right tools to build and debug MCP servers across many programming languages.
- Project
kibitzsh/kibitzKibitz is a VS Code extension and CLI that watches Claude or Codex sessions, streams live commentary, and lets you send prompts to existing or new sessions via simple slash commands.
- Project
NahumLitvin/prismantisprismantis is a plugin for Claude Code (and Codex/OpenCode) that replaces plain-text output with richly styled tables, diagrams, charts, code blocks, and LaTeX math, adding themes, copy buttons, and quiet tool logs. It runs entirely locally with no network calls.