1、安裝theos環(huán)境
安裝了就請(qǐng)直接跳過(guò),如果沒有安裝,那就先安裝:
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
更多配置細(xì)節(jié)請(qǐng)參考:http://www.itdecent.cn/p/2ef6c9a7cf7b
2、安裝iOSMonkeyDev
打開https://github.com/AloneMonkey/MonkeyDev/blob/master/bin/md-install
手動(dòng)創(chuàng)建文件md-install到用戶目錄(原因你懂的)
然后執(zhí)行:
chmod +x md-install
去掉文件中的dump.py和dump.js的下載代碼,并加入:
mv dump.py "$MonkeyDevPath/bin/dump.py"
mv dump.js "$MonkeyDevPath/bin/dump.js"
打開https://github.com/AloneMonkey/frida-ios-dump/blob/master/dump.py
手動(dòng)創(chuàng)建dump.py到用戶目錄
打開https://github.com/AloneMonkey/frida-ios-dump/blob/master/dump.js
手動(dòng)創(chuàng)建dump.js到用戶目錄
注意:確保 md-install、dump.py、dump.js在同一個(gè)目錄下
然后執(zhí)行:
sudo /bin/sh -c ./md-install
然后修改可執(zhí)行權(quán)限:
chmod +x ./md-install
到此,iOSMonkeyDev安裝完成!
配置sshpass
ssh-keygen -t rsa -P ''
ssh-copy-id -i /Users/username/.ssh/id_rsa root@your_device_ip
dylib編譯安裝問題:
An empty identity is not valid when signing a binary for the product type 'Dynamic Library'.
解決辦法:
在TARGETS的Build Settings中添加一個(gè)Add User-Defined Settings,
CODE_SIGNING_ALLOWED=NO
或者用sublime編輯器打開/opt/MonkeyDev/templates/Base.xctemplate/TemplateInfo.plist
找到以下代碼:
<key>CODE_SIGN_IDENTITY</key>
<string></string>
并在該位置下面添加:
<key>CODE_SIGNING_ALLOWED</key>
<string>NO</string>
重新編譯,其余錯(cuò)誤根據(jù)提示解決即可。