使用 otool 反汇编默认 iOS 应用程序
当我尝试使用 otool 反汇编现有的 iOS 应用程序(不是应用程序商店的应用程序)时,它不会分成不同的方法。这只是一大块。这是我正在使用的命令:otool -tV theApp.app/theApp >~/Desktop/output.txt
有没有办法将反汇编分成方法?
When I try to disassemble the stock iOS apps (not app store ones) with otool it isn't split into different methods. It's just one massive section. Here's the command I'm using:otool -tV theApp.app/theApp >~/Desktop/output.txt
Is there a way to get the disassembly split into methods?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,没有。这些应用程序已被剥离,这意味着它们不包含有关函数开始或结束位置的信息。然而,由于 Objective-C 是动态的,任何 Objective-C 方法都将在 Objective-C 段中拥有其名称和地址。您可以使用
otool -ov
获取此信息,但如果使用 class-dump-z,它提供 Objective-C 标头,如果您使用-A
选项,它将包含每个方法的地址。获得地址后,您可以浏览文件并手动将其分成方法。No, there isn't. Those applications have been stripped, which means they contain no information about where functions begin 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 using
otool -ov
, but it is easier to interpret it 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. After you have the addresses, you can go through your file and separate it into methods manually.