iOS12經過cyrun使用cycript調試

介紹

手機系統iOS12.0,經過unc0ver越獄,cycript的中止維護,沒法正常進行cycript調試。 慶幸的是cyrun支持了經過unc0ver越獄的iOS12系統。ios

操做流程

  1. 在**Cydia**中搜索,並安裝 New Curses, readlineadv-cmds
  2. 下載安裝包
wget http://apt.saurik.com/debs/cycript_0.9.594_iphoneos-arm.deb
複製代碼
wget http://www.tateu.net/repo/files/net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb
複製代碼
wget http://www.tateu.net/repo/files/net.tateu.cyrun_1.0.5_iphoneos-arm.deb
複製代碼

此處下載有三種方式:git

  • 經過終端wget
  • 下載安裝包到mac,而後scp到手機
  • 藉助ifunbox導入安裝包
  1. 安裝
dpkg -i cycript_0.9.594_iphoneos-arm.deb
複製代碼
dpkg -i net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb net.tateu.cyrun_1.0.5_iphoneos-arm.deb
複製代碼
  1. 使用方法
  • -n 表明AppNameExecutableNameIconNameLocalizedName
  • -b 表明bundleIdentifier
  • -e 加載
  • -d 卸載
  • -f 關閉詢問是否繼續功能
  • -c 加載腳本文件
  • 加載
cyrun -n SpringBoard -e  
cyrun -b com.apple.springboard -e
複製代碼
  • 卸載
cyrun -n SpringBoard -d
cyrun -b com.apple.springboard -d
複製代碼
  • 加載和自動卸載,退出cycript時自動殺掉App並卸載
cyrun -x backboardd -e -d
複製代碼
  • 關閉詢問繼續功能和加載腳本
cyrun -b com.apple.springboard -e -d -f -c /path/to/script.cy
複製代碼

來源:github

示例

akira:/var root# cyrun -n SpringBoard -e
applicationName: SpringBoard is running (7165)
    executableName: SpringBoard
    bundleIdentifier: com.apple.springboard
    Cycript is inactive:
    Device is passcode locked
    Tweak Mode
Do you want to continue enabling Cycript (y or n)? y
Waiting for Process to close...
Waiting for SpringBoard to launch...
Waiting for Cycript to become active...
Success, you may now run
    cycript -r 127.0.0.1:8556
cy# [NSBundle mainBundle].bundleIdentifier
@"com.apple.springboard"
cy# exit(0)
*** _assert(CYRecvAll(socket_, &size, sizeof(size))):../Console.cpp(328):Run
akira:/var root# cyrun -b com.apple.springboard -d
applicationName: SpringBoard is running (7271)
    executableName: SpringBoard
    bundleIdentifier: com.apple.springboard
    Cycript is active: com.apple.springboard
    Device is not passcode locked
    Tweak Mode
Do you want to continue disabling Cycript (y or n)? y
Waiting for Process to close...
Waiting for Cycript to be inactive...
Successfully disabled
    SpringBoard was killed
akira:/var root#
複製代碼
相關文章
相關標籤/搜索