anything-analyzer README

The project's README from github.com/Mouseww/anything-analyzer. As one markdown file: README.md.

Anything Analyzer

简体中文 | English

网页、桌面应用、终端命令、Python 脚本、手机 App —— 不管流量从哪来,抓到就能让 AI 自动逆向分析。

Electron React TypeScript License

Anything Analyzer Screenshot

为什么用 Anything Analyzer?

传统工具各管一摊:DevTools 只看浏览器、Fiddler/Charles 只做代理、Wireshark 看不了 HTTPS。抓完包还得自己翻几百条请求,手动分析。

Anything Analyzer 不一样 —— 全场景抓包 + AI 自动分析:

  网页          桌面应用         终端            脚本          手机/IoT
  Chrome       Postman         curl/wget      Python        App / 小程序
    │          Electron          │             Node.js          │
    │            │               │               │              │
    ▼            ▼               ▼               ▼              ▼
 ┌──────────┐ ┌─────────────────────────────────────────────────────┐
 │ 内嵌浏览器 │ │              MITM 代理 (端口 8888)                   │
 │   (CDP)   │ │   系统代理 / 手动指定 / Wi-Fi 代理                    │
 └─────┬─────┘ └──────────────────────┬──────────────────────────────┘
       │                              │
       └──────────┬───────────────────┘
                  ▼
        ┌─────────────────┐
        │  统一会话 Session  │  ← 所有来源的请求汇入同一个会话
        └────────┬────────┘
                 ▼
        ┌─────────────────┐
        │   AI 智能分析     │  ← 一键生成协议逆向 / 安全审计 / 加密分析报告
        └─────────────────┘

三大核心能力

1. 全场景抓包 — Anything,不止浏览器

抓包对象 怎么抓 典型场景
网页 内嵌浏览器直接操作 网站 API 逆向、OAuth 登录、前端加密
桌面应用 MITM 代理 + 系统代理 Postman、Electron 应用、游戏客户端
终端命令 MITM 代理 + 环境变量 curl、wget、httpie
脚本程序 MITM 代理 + 代码配置 Python requests、Node.js fetch、Go http
手机 / 平板 MITM 代理 + Wi-Fi 代理 iOS/Android App、小程序、H5
IoT / 其他设备 MITM 代理 + 网关代理 智能家居、嵌入式设备的 HTTP 通信

所有来源的请求统一汇入同一个 Session,AI 分析时一并处理。

2. AI 智能分析 — 不只是抓包,是自动理解协议

3. MCP 生态集成 — AI Agent 的抓包工具


使用场景

场景 流量来源 你能得到什么
逆向网站 API 内嵌浏览器 API 端点文档 + 鉴权流程 + Python 复现代码
逆向 App 协议 手机 Wi-Fi 代理 App 的隐藏 API + 请求签名逻辑
JS 加密逆向 内嵌浏览器 + JS Hook 加密算法识别 + 流程还原 + Python 实现
安全审计 浏览器 + 代理混合 Token 泄露、CSRF/XSS 漏洞、敏感数据暴露
调试 CLI 工具 终端 curl/httpie 完整请求/响应记录 + AI 解读每一步
调试微服务 脚本 + 环境变量代理 服务间调用链路 + 认证流转分析

Anything Analyzer — 使用说明

使用说明


快速开始

下载安装

从 Releases 下载对应平台安装包:

平台 文件
Windows Anything-Analyzer-Setup-x.x.x.exe
macOS (Apple Silicon) Anything-Analyzer-x.x.x-arm64.dmg
macOS (Intel) Anything-Analyzer-x.x.x-x64.dmg
Linux Anything-Analyzer-x.x.x.AppImage

抓网页 — 内嵌浏览器

  1. 配置 LLM — Settings → LLM,填入 API Key(支持 OpenAI / Anthropic / 任何兼容 API)
  2. 新建 Session — 输入名称和目标 URL
  3. 操作抓包 — 在内嵌浏览器中操作网站,点击 Start Capture
  4. AI 分析 — 停止捕获,点击 Analyze,选择分析模式

抓应用/终端/手机 — MITM 代理

  1. Settings → MITM 代理 → 安装 CA 证书
  2. 启用代理(默认端口 8888)
  3. 根据场景配置代理:
# ---- 终端命令 ----
curl -x http://127.0.0.1:8888 https://api.example.com/data

# ---- Python 脚本 ----
proxies = {"http": "http://127.0.0.1:8888", "https": "http://127.0.0.1:8888"}
requests.get("https://api.example.com/data", proxies=proxies)

# ---- Node.js ----
HTTP_PROXY=http://127.0.0.1:8888 HTTPS_PROXY=http://127.0.0.1:8888 node app.js

# ---- 系统全局(桌面应用自动走代理)----
# Settings 中一键开启「设为系统代理」

# ---- 手机 / 平板 ----
# Wi-Fi 设置 → HTTP 代理 → 手动 → 填入电脑 IP + 端口 8888
# 然后用手机浏览器访问代理地址下载并安装 CA 证书
  1. 新建 Session(URL 可留空)→ Start Capture → 外部应用流量自动汇入
CA 证书详细说明
  • 证书存储:%APPDATA%/anything-analyzer/certs/(Windows)/ ~/Library/Application Support/anything-analyzer/certs/(macOS)
  • 首次安装需管理员权限(Windows UAC / macOS 密码)
  • Settings 中可随时卸载、重新生成或导出证书
  • 根 CA 有效期 10 年,子证书 825 天(符合 Apple 要求)
  • MITM 代理为只读捕获,不修改请求/响应内容
  • WebSocket 流量隧道转发,不做解密
  • 单个 body 上限 1MB,二进制内容自动跳过

全部功能

展开查看完整功能列表

抓包引擎

  • 全量网络捕获 — CDP Fetch 拦截,所有 HTTP 请求/响应(含 headers、body)
  • MITM 代理 — 内置 HTTPS 中间人代理,自动签发 TLS 证书,按域名 LRU 缓存
  • 双通道捕获 — 浏览器 CDP + MITM 代理,统一汇入同一会话
  • SSE / WebSocket 识别 — 自动检测流式通信和 WebSocket 升级请求
  • 存储快照 — 定时采集 Cookie、localStorage、sessionStorage 变化
  • Domain 过滤 — 请求列表按域名分组过滤,支持部分匹配搜索
  • 请求来源标记 — 区分「CDP」和「代理」来源
  • 导出请求 — 原始请求数据导出为 JSON 文件

浏览器

  • 多标签页 — 支持弹窗自动捕获为内部标签(OAuth 流程友好)
  • 标签页防护 — 阻止 window.close() 关闭标签页,最后一个标签页被意外销毁时自动恢复
  • 一键清除环境 — Cookies、localStorage、sessionStorage、缓存一键清空

AI 分析

  • 两阶段分析 — Phase 1 智能过滤 → Phase 2 深度分析,AI 按需查看请求详情
  • 手动多选分析 — 勾选指定请求直接分析,跳过预过滤
  • 自定义 Prompt 模板 — 内置多种模板,支持自定义
  • 流式输出 + 追问 — 报告实时显示,支持多轮对话

系统

  • 系统代理集成 — 一键设为系统代理(Windows 注册表 / macOS networksetup / Linux gsettings)
  • CA 证书管理 — 安装 / 卸载 / 重新生成 / 导出,跨平台支持
  • 全局代理 — 支持 SOCKS5/HTTP/HTTPS 代理
  • 自动更新 — 内置 electron-updater
  • 暗色主题 — 基于 Ant Design 的现代界面

从源码构建

git clone https://github.com/MouseWW/anything-analyzer.git
cd anything-analyzer
pnpm install
pnpm dev        # 开发模式
pnpm test       # 运行测试
pnpm build && npx electron-builder --win  # 构建 Windows 安装包

macOS 发布说明:自动更新依赖已签名且已公证的安装包。GitHub Actions 发布 mac 版本前,请在仓库 Secrets 中配置 CSC_LINK、CSC_KEY_PASSWORD、APPLE_ID、APPLE_APP_SPECIFIC_PASSWORD、APPLE_TEAM_ID,否则 ShipIt 无法安装更新。

环境要求: Node.js >= 18 · pnpm · Visual Studio Build Tools (Windows)

Tech Stack

Layer Technology
Framework Electron 35 + electron-vite
Frontend React 19 + Ant Design 5 + TypeScript
Database better-sqlite3 (local SQLite)
Protocol Chrome DevTools Protocol (CDP)
Proxy 内置 MITM HTTPS 代理(node-forge TLS)
AI OpenAI / Anthropic / Custom LLM(Chat Completions + Responses API)
AI 扩展 MCP Client(stdio + StreamableHTTP)+ 内置 MCP Server
项目结构
src/
├── main/                    # Electron main process
│   ├── ai/                  # AI 分析流水线(两阶段编排、prompt、LLM 路由)
│   ├── capture/             # 抓包引擎(CDP Fetch + JS Hook + 存储快照)
│   ├── cdp/                 # Chrome DevTools Protocol 管理
│   ├── proxy/               # MITM 代理(CA 管理、证书签发、系统代理)
│   ├── mcp/                 # MCP Client + 内置 MCP Server
│   ├── db/                  # SQLite 数据层
│   └── session/             # 会话生命周期管理
├── preload/                 # Context bridge + Hook 注入脚本
├── renderer/                # React UI(组件 + Hooks)
└── shared/                  # 共享类型定义

本项目不具备以下能力:

务必不要使用本工具进行任何违反中国法律的行为!!!


Thanks to everyone on LinuxDo for their support!


赞助鸣谢(下面的服务都是大家日常需要的哦!)

logo RapidProxy 是专为自动化任务和多账号业务打造的高性能代理服务商,提供纯净住宅代理和原生静态 ISP IP。支持 9000 万+ 全球住宅 IP、智能轮换、稳定 Session 和高并发请求,适用于网页数据采集、浏览器自动化、社媒账号运营、电商业务和批量注册等场景。住宅代理低至 $0.55/GB,流量长期有效不过期。使用优惠码 RAPID10 可享 9 折优惠,立即免费测试。
b19949dd9bd5760f8b90239ee644be10 AI 分析工具在处理全球化数据时,可能需要不同地区的访问环境。
IPWO全球住宅代理,提供动静态IP资源,支持http/https/socks5多种协议,可以免费测试,帮助开发者探索更多数据获取与分析应用场景。
优惠折扣码“0202”
点击访问
image 遇到难题,不必一个人扛
提供一对一心理支持与家庭关系咨询,擅长:
• 情绪困扰与压力疏导
• 家庭/亲密关系矛盾分析与调解
• 生活重大决策的理性梳理与方案制定
倾听、梳理、出方案——陪你找到下一步的方向
电话/微信: 19117443889
Bloome 想用人工智能分析数据?Bloome 让多个 AI 代理(Claude、ChatGPT、DeepSeek 等)在一次对话中协作——无需设置,在云端运行,可在网页和移动设备上使用,而且您可以与整个团队共享已配置的代理。
👉 试试 Bloome:Bloome_im
Doloffer Doloffer — GPT / Claude 真*正版会员订阅,比官网便宜很多的优惠价,我自己也在用,裂墙推荐。
📖 使用指南 | 🎁 优惠码:Al8888(享 9 折)

Star History

Star History Chart

License

MIT

企鹅交流群: 1091466461

anything-analyzer (Mouseww/anything-analyzer)

automation-tools
Searching Database…

What is this?Anything Analyzer is an all-in-one traffic capture and protocol analysis toolkit: it captures HTTP/HTTPS traffic from a browser, desktop apps, terminal commands, scripts, mobile devices, and IoT devices into one session, then uses an LLM to automatically reverse-engineer and explain the protocol.
Is this a desktop app or a command-line tool?It is a cross-platform Electron desktop application (Electron 35 + React 19 + Ant Design), not a CLI, with a built-in browser, MITM proxy, and local SQLite storage.
How do I get it running and start capturing traffic?Download the prebuilt installer for your OS from Releases, then in Settings configure an LLM API key, create a new Session, operate the target (website in the embedded browser, or point other apps/terminal/phones at the built-in MITM proxy), click Start Capture, then Analyze.
Do I need my own LLM API key?Yes, the app has no built-in AI model - you must supply your own key for OpenAI, Anthropic, or any compatible LLM API in Settings before analysis works.
Does the MITM proxy modify my traffic, and are there capture limits?No, the MITM proxy is strictly read-only capture - it never modifies requests or responses, WebSocket traffic is just tunneled without decryption, and each captured body is capped at 1MB with binary content auto-skipped.
Who is this built for?It targets reverse engineers, API researchers, and security auditors who need to inspect hidden App/website APIs, JS crypto routines, or microservice call chains, since the use-case table lists website API reverse engineering, app protocol reverse engineering, JS crypto reverse engineering, security audits, and CLI/microservice debugging.
What AI analysis modes does it support?Five modes - auto-detect, API reverse engineering, security audit, performance analysis, and JS encryption reverse engineering - run through a two-phase pipeline where Phase 1 filters out noise requests and Phase 2 does the deep analysis.
What does the built-in MCP server do?It exposes the capture and analysis engine as MCP tools so external agents like Claude Desktop or Cursor can drive capture and analysis directly, and the app also acts as an MCP client to connect to outside MCP servers for extra capabilities.
How does it capture traffic from a phone or an IoT device?You point the device's Wi-Fi or gateway proxy at the built-in MITM proxy (default port 8888) and install the generated CA certificate; traffic from phones, smart home devices, or embedded systems then merges into the same session as browser traffic.
Why not just use DevTools, Fiddler, or Wireshark?Those tools are siloed - DevTools only sees the browser, Fiddler/Charles only proxy traffic, and Wireshark cannot decrypt HTTPS - and none of them explain hundreds of captured requests for you; Anything Analyzer unifies every capture source into one session and hands it to an AI for automatic analysis.
Creator
Mouseww
Size
1.6 MB
Stars
3.8K
Age
6mo
Commits · 90 Days