Overview
Cycript is a mixture of syntax such as objective-c++, ES (JavaScript), and Java.
Can be used to explore, modify, debug the running Mac\ios App.
通过Cydia安装Cycript,即可在iPhone上调试运行中的APP。
Cycript Basic Use
Open
cycript
Exit
ctrl + D
Clear Screen
commond + R
Debug app
cycript -p 进程IDcycript -p 进程名称
To get the iphone install app process ID, you first need to install the Adv-cmds plugin. Execution ps -A instructions. Can be ps -A | grep 关键词 found by fast.
如果想通过ps -A命令找到某个App的进程ID,一定先保证该App运行。
Cycript Common syntax
Gets the iuapplication of the application's program
UIApp
Defining variables
var 变量名 = 变量值
accessing objects with memory addresses
#内存地址
Get all the app's classes
ObjectiveC.classes
View all member variables of an object
*对象
Recursively print all of the view's sub-spaces (functions like lldb)
view.recursiveDescription().toString()
Get all the controllers for the current page
choose(UIViewController)
iOS Reverse series-cycript