1. 安装 frida
- 安装
-- 打开 cmd 命令行,输入安装命令;
pip install frida
pip install frida-tools
- 测试
frida --help
得到下图,表示安装成功。
image.png
2. 安装并启动 frida-server
- 查看模拟器 CPU 架构
adb shell
getprop ro.product.cpu.abi
-- 得到下图,表示模拟器 CPU 架构为 x86;
image.png
- 下载 frida-server
-- 下载地址:https://github.com/frida/frida/releases,选择下载 frida-server-12.9.8-android-x86.xz 并解压缩;
image.png
- push 进入手机
adb push 你的存放目录\frida-server-12.9.8-android-x86 /data/local/tmp/ # 后面放进手机的位置
-- 如下图,push 成功;
image.png
- 启动 frida-server
adb shell
su # 获取 su 权限
cd /data/local/tmp/ # 进入 frida-server 文件目录
chmod 777 ./frida-server-12.9.8-android-x86
./frida-server-12.9.8-android-x86
- 端口转发
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043
如下图,表示端口转发成功,配置完成。
image.png