提取Objective-C的二进制 [英] Extract Objective-c binary

查看:118
本文介绍了提取Objective-C的二进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以提取二进制,得到code,它是二进制的背后?带班转储可以看到执行的地址,但它可能也看到了code,多数民众赞成在执行地址?有没有办法做到这一点?

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?

推荐答案

您所有的code编译成一条指令,放置在你的可执行文件的文本部分。编译器负责将你的高级语言对处理器的具体说明,这是简单的。还原这一过程将几乎是不可能的,除非code是相当简单的。有些问题陈述不清,整体可读性:局部变量,例如,将是什么,但偏移地址

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.

如果你想读的拆解code在可执行文件使用此命令(其中上级code编译的说明):

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 文件

这篇关于提取Objective-C的二进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆