简体   繁体   English

逆向工程?

[英]Reverse Engineering?

I have *.ipa file which is the iphone application. 我有* .ipa文件,它是iphone应用程序。

  • Is that possible to use reverse engineering in that ipa and extract code..? 是否可以在ipa中使用逆向工程并提取代码..?

Well, its not really a hacking but it can surely help you identify some parts of the UI... Do the following: 好吧,它不是真正的黑客,但它肯定可以帮助您识别UI的某些部分...执行以下操作:

1- Create a new project on the Xcode (doesn't really mater what you choose) 1-在Xcode上创建一个新项目(并不能真正影响你的选择)

2- Connect your device to your computer 2-将设备连接到计算机

3- Profile your project on your device. 3-在您的设备上描述您的项目。

4- On the Profile, pick Core Animation 4-在配置文件中,选择Core Animation

5- On the options choose Color Blended Layers It will look like this: 5-在选项上选择Color Blended Layers它将如下所示: 在此输入图像描述

6- Unplug your device while the profile is running. 6-在配置文件运行时拔下设备。 Your phone will look like this now: 你的手机现在看起来像这样:

在此输入图像描述

7- Go to the app you want to check. 7-转到要检查的应用程序。

Although you can't see any code, this can help you out to identify key parts of the application. 虽然您看不到任何代码,但这可以帮助您识别应用程序的关键部分。 To get back to normal, you can restart your device, or just go to the profile and run it Again, and uncheck the Color Blended Layers option. 要恢复正常,您可以重新启动设备,或者只需转到配置文件并再次运行它,然后取消选中“ 颜色混合图层”选项。

As stated here: How to use Xcode to open decrypted IPA contents ipa is only a "zipped" version of the executable. 如下所述: 如何使用Xcode打开解密的IPA内容 ipa只是可执行文件的“压缩”版本。

So if you are able to extract, its mostly an issue of dissasemble the executable (assembly code/dissasemblers). 因此,如果你能够提取,它主要是一个disasemble可执行文件(汇编代码/ dissasemblers)的问题。

But somehow this smells like fish. 但不知何故,这闻起来像鱼。

Not possible the way you intend it! 你的意图不可能! .ipa files contain the resources(images,sound files, database files,etc) and compiled classes only. .ipa文件仅包含资源(图像,声音文件,数据库文件等)和编译类。 The code is contained in these compiled classes as binaries and thus, you can at the most see how the app was structured into classes and how the resources were used but can not get the actual code as written by the developers. 代码作为二进制文件包含在这些编译的类中,因此,您最多可以看到应用程序如何构建到类中以及如何使用资源但无法获得开发人员编写的实际代码。 You can refer this SO question to get a brief idea as to how that can be done. 你可以参考这个问题 ,以便了解如何做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM