Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
binder-trace — Binder Trace 是一款用于拦截和解析 Android Binder 消息的工具。可以将其视为“Binder 版的 Wireshark”。 | Kitploit
工具/GitHubGitHub/foundryzero/binder-trace
Android安全动态分析 (沙盒)移动应用渗透测试逆向工程移动安全二进制分析
GitHubfoundryzero/binder-trace

binder-trace

Binder Trace 是一款用于拦截和解析 Android Binder 消息的工具。可以将其视为“Binder 版的 Wireshark”。

查看仓库
7667960年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

binder-trace logo

Binder Trace

Binder Trace 是一款用于拦截和解析 Android Binder 消息的工具。你可以把它视为“Binder 版 Wireshark”。

binder-trace demo

环境要求

python 版本 >= 3.9

⚙️ 安装

你需要一台已 root 的 Android 设备或模拟器。

  • (仅限 Linux)- 安装 xclip 或 xsel 以获得“复制到剪贴板”功能

    sudo apt-get install xclip

    sudo apt-get install xsel

  • 从 PyPi 安装

    pip install binder-trace

  • 检查已安装的 frida 版本(请确保已通过 pip 安装所需依赖)

    pip list | grep frida

  • 从 frida 发布页面 下载匹配版本的 frida-server

  • 确保 adb 以 root 身份运行,将 frida-server 推送到设备上并运行它

    adb root

    adb push frida-server /data/local/tmp

    adb shell

    chmod u+x /data/local/tmp/frida-server

    /data/local/tmp/frida-server

参数

▶️ 启动 binder trace

要启动 binder trace,我们需要选择一个要附加到的设备和进程。 在下面的示例中,我们使用 adb 和 frida-ps 来识别本地模拟器上要附加到的进程。由于它是 Android 11 模拟器,我们选择 Android 11 structs 目录。请选择与你的 Android 版本最接近的 struct 目录。如果你需要其他 Android 版本的结构体,请告诉我们。运行起来后,开始使用目标应用来产生一些 binder 事务。

root@kitploit:~
> adb devices
List of devices attached
emulator-5554   device

> frida-ps -Ua
 PID  Name           Identifier
----  -------------  ----------------------------
8334  Messaging      com.android.messaging
7941  Phone          com.android.dialer
9607  Settings       com.android.settings

> cd binder_trace
> binder-trace -d emulator-5554 -n Messaging -a 11

⌨️ 控制

🌐 全局

📈 频率窗格

🔎 配置文件

要过滤,请定义 interface、method、type 和 inclusive 选项中的任意一个或全部。不使用某个选项时,请将其留空 ""

不使用 -c 参数

root@kitploit:~
> binder-trace -d emulator-5554 -n Contacts -a 13

Before Config

使用 -c 参数

config.json

root@kitploit:~
{
    "filters": [
        {
            "interface": "android.gui.IDisplayEventConnection",
            "method": "requestNextVsync",
            "type": "",
            "inclusive": false
        },
        {
            "interface": "android.content.IContentProvider",
            "method": "",
            "type": "call",
            "inclusive": false
        }
    ]
}
root@kitploit:~
> binder-trace -d emulator-5554 -n Contacts -a 13 -c .\binder_trace\binder_trace\config.json

android.gui.IDisplayEventConnection->requestNextVsync->"" 和 android.content.IContentProvider->"" ->call 已被过滤掉

After Config

📦 结构兼容性

内部 binder 接口可能会在不同的小版本之间发生变化,而由于它们实际上是整体编译在一起的,没有运行时版本信息,因此很难为 Android 高度碎片化的生态系统中的每个版本提供 100% 准确的结构信息。

有关结构体的更多详细信息,请参见 结构说明页面。

下载工具
参数描述
-h打印参数帮助。
-d DEVICE要附加到的设备,例如“emulator-5554”。使用 adb devices 列出可用设备。如果未提供,则默认使用 USB 设备。
-p PID要附加到的 DEVICE 上进程的 pid。
-n NAME要附加到的 DEVICE 上进程的名称,例如“Messaging”。
-a [9, 10, 11, 12, 13, 14]目标设备的 Android 版本。如果未提供 struct 路径,则使用默认结构体。
-s STRUCTPATH结构文件目录的路径。
-c CONFIG用于过滤的配置文件的路径。
--spawn 在附加前生成(spawn)进程。必须提供 -n 选项,并且其值必须为有效的进程标识符。
按键操作
up上移
down下移
shift + up上一页
shift + down下一页
home回到顶部
end回到底部
tab下一个窗格
shift + tab上一个窗格
ctrl + c将窗格复制到剪贴板
space暂停/恢复事务记录
c清除
h打开帮助
r重新加载配置文件
q退出
按键操作
p切换排序(升序/降序)
w跳转到下一个接口
s跳转到上一个接口
a开启全部过滤器
n关闭全部过滤器
enter切换过滤器