返回目录
模型与 MCP 插件

dsh-frida-toolkit

wanan8396/dsh-frida-toolkit

Frida toolkit for DeepSeek Harness (DSH): a sidebar workbench plus a `frida` agent tool to list devices/processes, attach or spawn, load JS (3 bundled scripts), call rpc.exports and read messages.

Stars
0
Forks
0
Issues
0
更新
8 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:wanan8396/dsh-frida-toolkit

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

DSH Frida Toolkit

A DeepSeek Harness (DSH) plugin that puts a working Frida workbench inside the app: a sidebar row, a full page, and a python bridge that keeps your attachments alive while you edit scripts.

What you get

Section What it does
环境 / Environment Python version, frida version, whether the bridge is running
进程 / Processes device picker + searchable process list, 附加 / Attach and 启动并附加 / Spawn & attach
会话 / Sessions every live attachment with 选中 / 断开 / 恢复运行 / 结束进程
脚本 / Script JS editor, three bundled scripts, 载入 / Load, 卸载 / Unload, rpc.exports caller
消息 / Messages every send() payload, detach reason, bridge exit — polled every 1.2 s

The selected session is what the editor loads into, so you can keep three apps attached and hop between them.

Bundled scripts

Script Use
trace-exports.js rpc.exports.configure({module:"libfoo.so"}), list(), hook("ssl", 20) — attaches onEnter/onLeave to exported functions and prints their arguments
ssl-unpin.js Hooks TrustManagerImpl.verifyChain, X509TrustManagerExtensions.checkServerTrusted, OkHostnameVerifier and X509_verify_cert so a proxy can read the traffic
finder.js rpc.exports.search("needle") / searchHex("48 65 6c") — scans readable memory ranges and returns address + context

Load one, then call its rpc:

  1. select a session,
  2. pick the bundled script,
  3. 载入,
  4. type the method in 方法名, e.g. configure, with args [{"module":"libc.so"}],
  5. 调用.

Agent API

Besides the page, the plugin registers one model-facing tool named frida, so you can simply ask the agent to do the work:

附加到 com.example.app,载入证书校验绕过脚本,把消息给我

The tool takes one action plus its fields and returns the same JSON the page uses:

action use
status / devices / applications discover what is attached and running
processes (query) find the target pid
attach (target) / spawn (target) open a session
load (session, source or target = bundled id) install a script
rpc (session, rpc, args) call rpc.exports.<name>
messages (session, sinceSeq) read what the script sent
sessions / detach / unload / resume / kill session lifecycle
script (target) fetch a bundled script's source to edit

Full contract, examples and failure modes: TOOL.md.

Requirements

  • frida in the python that DSH runs (python3 -c "import frida" must succeed). Install with python3 -m pip install --user frida — on a phone that goes into $DSH_DEPENDENCY_ROOT/python.
  • For an Android device over USB, run frida-server on the device and select it as the device; this page drives whatever frida.enumerate_devices() reports, local or remote.
  • No npm dependencies, no build step.

How it works

page  ──POST /plugins/frida-toolkit/call──▶  host.js  ──stdin/stdout JSON──▶  bridge.py  ──▶  frida
      ◀──GET /plugins/frida-toolkit/events── (buffered)                     (one process)
  • bridge.py keeps Device/Session/Script objects; the page never sends python.
  • Every call is id-correlated with a 120 s timeout, so a hung frida call cannot wedge the page.
  • The bridge is spawned on first use and killed when the plugin unloads.
  • GET /plugins/frida-toolkit/script?id=ssl-unpin.js serves the bundled scripts.

Limitations

  • rpc.exports are called synchronously (exports_sync); a script with only async exports must be called through its own send() messages instead.
  • Spawning needs the app to be startable by the user frida runs as; a permission error is reported verbatim in the message log.
  • The python bridge is one shared process: a script that crashes the agent only kills that script, but killing the bridge drops every attachment (they reattach fine).

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。