1.安装Python环境
http://www.python.org/ 访问下载
推荐安装python3.7版本,兼容性高
2.安装frida模块
打开Py输入命令:
pip install frida
pip install frida-tools
我这里安装的是 pip install frida==12.10.4
3.frida-server下载地址:
https://github.com/frida/frida/releases
下载安装frida server 版本和类型对应,框架和设备对应
https://github.com/frida/frida/releases/tag/12.10.4
找到 frida-server 对应版本( 32 | 64 位),虚拟机为x86,真机为arm。
4.安装到手机上:
adb push 刚刚下载的安装包拖进来(frida-serer xxxx) /data/local/tmp
adb shell
su
cd /data/local/tmp
chmod 777 刚刚下载的安装包名(frida-serer xxxx)
ls -l 查看权限
4.启动frida-server
在刚刚cmd 窗口 /data/local/tmp目录下
运行 ./frida-serer xxxx
5.新启CMD进行端口转发:
adb forward tcp:27042 tcp:27042
6.运行frida检测代码:
import frida
remote_dev=frida.get_remote_device()
print(remote_dev)
front_app=remote_dev.get_frontmost_application()
print(front_app)
若结果如图所有,即为成功。