JP

johnzfitch/pyghidra-lite

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

36 stars 2 forks 质量 84 趋势 26MIT

用于基于Ghidra的轻量级MCP服务器,支持iOS、Linux和游戏文件

概览

基于 Ghidra 的逆向工程高效 MCP 服务器。分析支持 Swift、Objective-C 和 Hermes 的 ELF、Mach-O 和 PE 二进制文件。 一个精简、以安全为先的Ghidra MCP。确实如此——分析工具永远不会改变你的二进制文件或服务器配置(服务器在进程生命周期内处于冻结状态)。唯一负责写入、注释(重命名/注释/原型)的工具是(--允许-写入)和:每个变更在提交前都经过你通过MCP引发提示批准,如果客户无法请求,则失败关闭。你得到一个分析代理,可以在监督下持久化其发现,而不放弃只读安全的故事。 通过自制软件(brew安装ghidra)或/opt/ghidra或~/ghidra安装的Ghidra会自动找到。GHIDRA_INSTALL_DIR设置为仅针对非标准路径。 在你的项目中创建.mcp.json(全局则用~/.claude.json): 添加到 ~/Library/Application Support/Claude/claude_desktop_config。

概述(AI 翻译)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

pyghidra-lite

Token-efficient MCP server for Ghidra-based reverse engineering. Analyze ELF, Mach-O, and PE binaries with Swift, Objective-C, and Hermes support — decompile, disassemble, trace calls and value flow, recover data types, and map addresses back to file offsets. Runs on Linux, macOS, and Windows; ships as a Claude Code plugin with a bundled reverse-engineering skill.

Bottom line: a lean, security-first Ghidra MCP. It is read-only by default — analysis tools never mutate your binaries or the server’s configuration (which is frozen for the life of the process). The one tool that writes, annotate (rename / comment / prototype), is opt-in (--allow-write) and human-confirmed: every change is approved by you through an MCP elicitation prompt before it’s committed, and it fails closed if your client can’t ask. You get an analyst-agent that can persist its findings — under supervision — without giving up the read-only safety story.

Quick Start

1. Prerequisites

A 64-bit JDK 21+ and Ghidra 11.x or 12.x are required (tested with Ghidra 12.1.2 and JDK 21).

# macOS
brew install openjdk@21
在 GitHub 查看完整 README

安装

uvx pyghidra-lite
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pyghidra-lite": { "command": "pyghidra-lite" } } }