Frida MCP

MIT License
2
  • Linux
  • Apple

Integrations

  • Enables execution of JavaScript code in real-time through an interactive REPL, allowing for function hooking, call interception, and script injection in target applications.

  • Offers platform-specific support for analyzing Linux applications, with configuration instructions for Claude Desktop integration on Linux systems.

  • Provides platform-specific support for analyzing macOS applications, with configuration instructions for Claude Desktop integration on macOS systems.

弗里达 MCP

Frida 动态检测工具包的模型上下文协议 (MCP) 实现。

概述

该软件包为 Frida 提供了一个符合 MCP 标准的服务器,使 AI 系统能够通过 Frida 的动态检测功能与移动和桌面应用程序进行交互。它使用官方的MCP Python SDK来实现与 AI 应用程序的无缝集成。

演示

https://github.com/user-attachments/assets/5dc0e8f5-5011-4cf2-be77-6a77ec960501

特征

  • 使用官方 MCP Python SDK 构建
  • 通过 MCP 公开的综合 Frida 工具:
    • 进程管理(列出、附加、生成、恢复、终止)
    • 设备管理(USB、远程设备)
    • 具有实时执行功能的交互式 JavaScript REPL
    • 带有进度跟踪的脚本注入
    • 过程和设备监控
  • 向模型提供 Frida 数据的资源
  • 引导 Frida 分析工作流程的提示
  • 长期运行操作的进度跟踪
  • 全面支持所有 MCP 传输方法

安装

先决条件

  • Python 3.8 或更高版本
  • pip 包管理器
  • Frida 16.0.0 或更高版本

快速安装

pip install frida-mcp

开发安装

# Clone the repository git clone https://github.com/yourusername/frida-mcp.git cd frida-mcp # Install in development mode with extra tools pip install -e ".[dev]"

Claude 桌面集成

要将 Frida MCP 与 Claude Desktop 一起使用,您需要更新 Claude 配置文件:

  1. 找到您的 Claude Desktop 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. 将以下内容添加到您的配置文件中:
{ "mcpServers": { "frida": { "command": "frida-mcp" } } }

用法

安装完成后,您可以直接从 Claude Desktop 使用 Frida MCP。该服务器提供以下功能:

流程管理

  • 列出所有正在运行的进程
  • 附加到特定进程
  • 产生新进程
  • 恢复暂停的进程
  • 终止进程

设备管理

  • 列出所有连接的设备(USB、远程)
  • 获取设备信息
  • 连接到特定设备

交互式 JavaScript REPL

  • 创建具有流程的交互式会话
  • 实时执行 JavaScript 代码
  • 监视进程状态和内存
  • 钩子函数和拦截调用
  • 捕获 console.log 输出
  • 优雅地处理错误和异常

脚本注入

  • 注入自定义 JavaScript 脚本
  • 跟踪注射进度
  • 处理脚本错误和异常

资源

  • 获取Frida版本信息
  • 以人类可读的格式访问进程列表
  • 以人类可读的格式访问设备列表

发展

# Clone repository git clone https://github.com/yourusername/frida-mcp.git cd frida-mcp # Install development dependencies pip install -e ".[dev]"

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

符合 MCP 标准的服务器,使 AI 系统能够通过 Frida 的动态检测功能与移动和桌面应用程序交互,从而实现进程管理、设备控制、JavaScript 执行和脚本注入。

  1. Overview
    1. Demo
      1. Features
        1. Installation
          1. Prerequisites
          2. Quick Install
          3. Development Install
        2. Claude Desktop Integration
          1. Usage
            1. Process Management
            2. Device Management
            3. Interactive JavaScript REPL
            4. Script Injection
            5. Resources
          2. Development
            1. License
              ID: ie7s1zkmge