Iphone: strace, dtruss, dtrace or equivalent?

Does anyone know if there is something like strace , dtruss or dtrace for iPhone?

 tester-iPhone:/tmp root$ apt-cache search dtruss tester-iPhone:/tmp root$ apt-cache search dtrace tester-iPhone:/tmp root$ apt-cache search trace tester-iPhone:/tmp root$ apt-get install strace 
 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package strace 
 tester-iPhone:/tmp root$ apt-get install dtrace 
 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package dtrace 
 tester-iPhone:/tmp root$ apt-get install ltrace 
 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ltrace 
 tester-iPhone:/tmp root$ apt-get install dtruss 
 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package dtruss 
+4
source share
2 answers

DTrace (and therefore dtruss too) apparently ported to iOS some time ago, but Apple did not release it outside of its own laboratories. The best link I can dig is a quote from one of the authors of DTrace: https://twitter.com/ahl/status/311866307115098112

+1
source

Frida , which provides dynamic code coding using the Python API, may be useful. It allows you to enter JavaScript fragments into native applications on iOS (and Windows, Mac, Linux).

There's a good tutorial on using Frida on iOS .

There's also Saurik Cycript , which allows "developers to research and modify running applications on iOS or Mac OS X using the Objective-C ++ hybrid and JavaScript syntax through an interactive console."

And, of course, its Cydia Substrate allows you to change / enter the behavior of iOS applications.

+1
source

Source: https://habr.com/ru/post/1394348/


All Articles