Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract Objective-c binary

Is it possible to extract a binary, to get the code that is behind the binary? With Class-dump you can see the implementation addresses, but is it possible to also see the code thats IN the implementation addresses? Is there ANY way to do it?

like image 701
JonasG Avatar asked Dec 07 '25 08:12

JonasG


1 Answers

All your code compiles to single instructions, placed in the text section of your executable. The compiler is responsible for translating your higher level language to the processor specific instructions, which are simpler. Reverting this process would be nearly impossible, unless the code is quite simple. Some problems are ambiguity of statements, and the overall readability: local variables, for instance, will be nothing but an offset address.

If you want to read the disassembled code (the instructions of which the higher level code was compiled to) use this command in an executable:

otool -tV file

like image 119
sidyll Avatar answered Dec 08 '25 22:12

sidyll



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!