How to connect the Cycript

Find process

เชื่อมต่อ “ipad” ผ่าน “SSH” (รายละเอียดเพิ่มเติม การเชื่อมต่อ iOS ผ่าน SSH http://blog.itselectlab.com/?p=151) จากนั้นเปิดโปรแกรมที่ต้องการเชื่อมต่อ “process” และทำการค้นหา “process” โดย-ใช้คำสั่ง “ps aux | grep ชื่อโปรแกรม” โดยที่มี “\” เพื่อบ่งบอกว่าเป็นเว้นวรรค (space bar)

Connect iPAD via Secure Shell (for more details, please see in the How to access iOS via SSH (remote access)). Then, open the application you want to connect the process and find the PID (process identifier) by using command “ps aux | grep” and follow the application name. If the application name have the space, use the “\” before space as the following:

login as: root
root@192.168.0.23's password:
iPad:~ root# ps aux | grep SCC\ EABY
mobile   3763   0.0 4.1   404716 21188   ?? Us   1:26AM   0:01.85 /var/mobile/Applications/FD21B12E-6D9C-4B97-8C85-96953895076C/SCC EABY.app/SCC EABY
root     3867   0.0 0.1   338564   424 s003 R+   9:35AM   0:00.01 grep SCC EABY

ถ้าพบข้อความผิดพลาด  “-sh: ps: command not found” แสดงว่ายังไม่ได้ติดตั้งโปรแกรม “adv-cmds” ให้ไปที่ “cydia/ Search” แล้วติดตั้ง “adv-cmds”

If system return error, “-sh: ps: command not found”. It’s possible not to install the “adv-cmds”. Let’s go to cydia and then, search and install “adv-cmds”.

Attach process

จากนั้นทำการตรวจสอบหมายเลข process ที่ค้นพบ (3763) และเชื่อมต่อ “process” โดยใช้คำสั่ง “cycript”

Then, when we found the process number (PID), we can connect the process by using the “cycript” command. For the sample,  that is 3763.

iPad:~ root# ps aux | grep SCC\ EABY
mobile   3763   0.0 4.1   404716 21188   ?? Us   1:26AM   0:01.85 /var/mobile/Applications/FD21B12E-6D9C-4B97-8C85-96953895076C/SCB EASY.app/SCC EABY
root     3878   0.0 0.1   347824   552 s003 S+   9:38AM   0:00.01 grep SCC EABY
iPad:~ root# cycript -p 3763
cy#

End process

ถ้าจะยกเลิกการเชื่อมต่อสามารถทำได้โดยใช้คำสั่ง “?exit”

If we want to exit, we can type “?exit”.

cy# ?exit
iPad:~ root#

ใส่ความเห็น