0F

0xhackerfren/frida-game-hacking-mcp

开发工具

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

92 stars 11 forks 质量 69 趋势 0MIT

0xhackerfren/frida-game-hacking-mcp 是从 https://github.com/0xhackerfren/frida-game-hacking-mcp. 导入的一个 MCP 服务器候选服务器。

概览

0xhackerfren/frida-game-hacking-mcp 是从 https://github.com/0xhackerfren/frida-game-hacking-mcp. 导入的一个 MCP 服务器候选服务器。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,通过Frida提供类似作弊引擎的功能,用于游戏破解。使AI助手和自动化工具能够执行内存扫描、值修改、模式匹配、函数钩入和代码注入。

特色

记忆操作(作弊引擎风格)

  • 值扫描:按类型(int8-64、float、double、字符串)在内存中查找值
  • 扫描细化:在scan_next、scan_changed、scan_unchanged下,结果较窄。
  • 模式扫描:支持通配符的字节数组(AoB)(??)
  • 内存读写:具有类型意识的读取和修改内存

函数钩子与代码注入

  • 拦截函数:带有onEnter/onLeave的JavaScript回调钩子
  • 替换函数:使函数返回自定义值
  • 模块挂钩:按module!function名称挂钩
  • 符号解析:解析导出地址

流程管理

  • 进程枚举:列出和过滤正在运行的进程
  • 附加/分离:连接正在运行的进程
  • 生成与恢复:启动进程暂停以进行早期挂钩

调试

  • 断点:通过钩子实现的软件断点

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

README

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

Frida Game Hacking MCP

A Model Context Protocol (MCP) server that provides Cheat Engine-like capabilities for game hacking through Frida. Enables AI assistants and automation tools to perform memory scanning, value modification, pattern matching, function hooking, and code injection.

Features

Memory Operations (Cheat Engine Style)

  • Value Scanning: Find values in memory by type (int8-64, float, double, string)
  • Scan Refinement: Narrow results with scan_next, scan_changed, scan_unchanged
  • Pattern Scanning: Array of Bytes (AoB) with wildcard support (??)
  • Memory Read/Write: Read and modify memory with type awareness

Function Hooking & Code Injection

  • Intercept Functions: Hook with onEnter/onLeave JavaScript callbacks
  • Replace Functions: Make functions return custom values
  • Module Hooking: Hook by module!function name
  • Symbol Resolution: Resolve exports to addresses

Process Management

  • Process Enumeration: List and filter running processes
  • Attach/Detach: Connect to running processes
  • Spawn & Resume: Start processes suspended for early hooking

Debugging

  • Breakpoints: Software breakpoints via hooks
  • Register Access: Read CPU registers at breakpoints
  • Module Analysis: List modules, exports, imports

Window Interaction (Windows)

  • Screenshot Capture: Take screenshots of game windows
  • Keyboard Input: Send keystrokes to game windows
  • Window Management: List, focus, and interact with windows

Installation

# Install from PyPI (coming soon)
pip install frida-game-hacking-mcp

# Or install from source
git clone https://github.com/0xhackerfren/frida-game-hacking-mcp.git
cd frida-game-hacking-mcp
pip install -e .

Requirements

  • Python 3.10+
  • Frida 16.0+
  • pywin32, pillow (Windows, for screenshot features)
pip install frida frida-tools mcp pillow
# On Windows, also install:
pip install pywin32

Quick Start

Run the MCP Server

# Run directly
python -m frida_game_hacking_mcp

# Or use the entry point
frida-game-hacking-mcp

Configure with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "frida-game-hacking": {
      "command": "python",
      "args": ["-m", "frida_game_hacking_mcp"]
    }
  }
}

Configure with Other MCP Clients

The server uses stdio transport by default. Connect using:

  • Command: python -m frida_game_hacking_mcp
  • Transport: stdio

Usage Examples

Cheat Engine Workflow: Find and Modify Health

1. List processes and find your game
   > list_processes("game")
   
2. Attach to the game
   > attach("game.exe")
在 GitHub 查看完整 README

安装

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

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

配置

{ "mcpServers": { "frida-game-hacking": { "command": "python", "args": ["-m", "frida_game_hacking_mcp"] } } }