AI

axhlzy/il2cpp-frida-mcp

开发工具

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

31 stars 9 forks 质量 59 趋势 26

il2cpp frida MCP 服务器

概览

一个基于IL2CPP的模型上下文协议(MCP)倒置工程工具,使AI助手(同克洛德,基罗一样)能够直接分析和操纵Unity IL2CPP应用程序. - - Python 3.10+ - 节点.js 16+ - Frida 17+ - frida-il2cpp-桥 -frida-il2cpp-bridge - IL2CPP运行时桥 - Il2CppHookScripts - 参考执行

概述(AI 翻译)

一个基于IL2CPP的模型上下文协议(MCP)倒置工程工具,使AI助手(同克洛德,基罗一样)能够直接分析和操纵Unity IL2CPP应用程序.

□ 特性

  • Frida集成 - 支持USB、远程和本地设备连接
  • IL2CPP 分析 - 列出图像、类、方法以及模糊的搜索支持
  • ** 拆解** - 基于Frida指令的拆解方法 API
    • GC 高压分析 - 查找运行时对象实例
  • ** 进出口** - 查找模块导入和导出功能
    • ** JS 执行** - 执行任意 JavaScript 代码来操纵 Frida API

□ 项目结构

□ 安装

备选1:pip安装(建议)

备选2:人工依赖性安装

  • 编译Frida代理

□ 使用量

启动 MCP 服务器

配置 MCP 客户端

克洛德桌面/基罗

添加到您的 MCP 配置文件 :

或使用 Python 模块运行 :

□ MCP 工具

  • 弗里达基本工具

  • 工具 * * 描述 * * |-|-|-. QQ frida_list_devices 列出所有可用的 Frida 设备 QQ QQ frida_connect 连接到设备和目标进程 QQ frida_disconnect ······· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

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

README

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

IL2CPP Frida MCP Server

A Model Context Protocol (MCP) based IL2CPP reverse engineering tool that enables AI assistants (like Claude, Kiro) to directly analyze and manipulate Unity IL2CPP applications.

Features

  • 🔌 Frida Integration - Support for USB, remote, and local device connections
  • 📦 IL2CPP Analysis - List images, classes, methods with fuzzy search support
  • 🔍 Disassembly - Method disassembly based on Frida Instruction API
  • 🧠 GC Heap Analysis - Find runtime object instances
  • 📤 Import/Export - Find module import and export functions
  • 🛠️ JS Execution - Execute arbitrary JavaScript code to manipulate Frida API

Project Structure

.
├── mcp_server.py           # Entry point
├── mcp_server/             # MCP Server module
│   ├── __init__.py
│   ├── server.py           # MCP Server core
│   ├── state.py            # Frida state management
│   ├── tools.py            # MCP tool definitions
│   ├── transport.py        # Transport layer (stdio/sse/http)
│   ├── cli.py              # Command line interface
│   ├── agent_loader.py     # Agent loader
│   └── handlers/           # Tool handlers
│       ├── __init__.py
│       ├── frida_handlers.py
│       └── il2cpp_handlers.py
├── agent/                  # Frida Agent (TypeScript)
│   ├── index.ts            # Agent entry point
│   ├── core/               # Core modules
│   │   ├── il2cpp-helper.ts
│   │   ├── method-utils.ts
│   │   └── class-finder.ts
│   └── services/           # Service modules
│       ├── image-service.ts
│       ├── class-service.ts
│       ├── method-service.ts
│       ├── disasm-service.ts
│       ├── module-service.ts
│       ├── gc-service.ts
│       └── exec-service.ts
├── _agent.js               # Compiled Agent
├── package.json
├── tsconfig.json
└── requirements.txt

Installation

# Install from source
pip install .

# Or install in development mode
pip install -e .

Option 2: Manual dependency installation

pip install -r requirements.txt

Compile Frida Agent

npm install
npm run build

Usage

Start MCP Server

# If installed via pip
il2cpp-frida-mcp                        # Interactive selection
il2cpp-frida-mcp --stdio                # stdio mode
il2cpp-frida-mcp --sse                  # SSE mode
il2cpp-frida-mcp --http                 # HTTP mode

# Or run script directly
python mcp_server.py --stdio

# Custom host and port
il2cpp-frida-mcp --sse --host 0.0.0.0 --port 9000

Configure MCP Client

Claude Desktop / Kiro

Add to your MCP configuration file:

{
  "mcpServers": {
    "il2cpp-frida": {
      "command": "il2cpp-frida-mcp",
      "args": ["--stdio"]
    }
  }
}

Or run using Python module:

{
  "mcpServers": {
    "il2cpp-frida": {
      "command": "python",
      "args": ["-m", "mcp_server", "--stdio"]
    }
  }
}

MCP Tools

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "il2cpp-frida": { "command": "il2cpp-frida-mcp", "args": ["--stdio"] } } }