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.就可以去寫腳本開始調試了~