1.安装python,Mac自带了python2,建议升级为python3
2.安装frida
pip install frida
pip install frida-tools
安装的时候可能会报ssl的错,执行open /Applications/Python 3.7/Install Certificates.command
,再安装
3.下载frida server
https://github.com/frida/frida/releases
和安卓的cpu有关,我用的是mumu模拟器,下的是frida-server-14.0.8-android-x86.xz
4.将3中下载的解压,改名为frida-server,推送到手机中,添加执行权限,启动服务
adb push frida-server /data/local/tmp
adb shell a+x /data/local/tmp/frida-server
adb shell
./data/local/tmp/frida-server
5.设置adb端口转发
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043
6.就可以去写脚本开始调试了~