一、Frida
Frida 是一款基于 Python + JavaScript的 Hook 与调试框架,可运行在Win、Mac、Linux、Android、iOS等平台
它是一款易用的跨平台Hook工具,主要被用作动态二进制插桩技术
1. 安装frida
# 1.安装 python 3.8+
# 2.安装 frida
pip install frida frida-tools
# 3.查看安装版本
frida --version
# 4.下载服务端
adb shell getprop ro.product.cpu.abi # 查询android平台
# 服务端程序下载地址:https://github.com/frida/frida/releases
# android x86 平台 选择 frida-server-16.0.8-android-x86.xz
# 5.执行服务端程序
adb push .\frida-server-16.0.8-android-x86 /data/local/tmp/ # 推送到android
adb root # 获取shell root
adb chmod 777 /data/local/tmp/frida-server-16.0.8-android-x86 # 添加执行权限
adb shell /data/local/tmp/frida-server-16.0.8-android-x86 # 执行服务程序
adb forward tcp:27042 tcp:27042 #frida 端口转发到本地计算机端口
adb forward tcp:27043 tcp:27043
# 6.查看是否连接成功
frida-ps -U # 查看所有进程
2. frida -h
PS > frida-ps -h
usage: frida-ps [options]
optional argum