Disassemble default iOS apps with otool

When I try to parse fallback iOS apps (and not app stores) using otool, it doesn't split into different methods. This is just one massive partition. Here is the command I'm using:
otool -tV theApp.app/theApp >~/Desktop/output.txt
Is there a way to split disassembly into methods?

+6
source share
1 answer

No no. These applications have been removed, which means that they do not contain information about where the functions start or end. However, since objective-c is dynamic, any objective-c methods will have their name and address in the objective-c segment. You can get this information with otool -ov , but it's easier to interpret if you use class-dump-z , which provides objective-c headers and will include the addresses of each method if you use the -A option. Once you have the addresses, you can view your file and manually divide it into methods.

+14
source

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


All Articles