iOS Reverse series-cycript

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.