How to programmatically determine if DRM was removed from iPhone application?

独自空忆成欢 提交于 2019-12-02 08:26:47

问题


How can I determine if DRM was removed from iPhone application bundle (to protect it from piracy)?


回答1:


I have an iPhone app which integrates with a third party web service. I use the technique described in this question to find pirates and then have the app "phone home" with the user's device ID and user ID for the web service (I haven't done anything with this information yet, but I was thinking about contacting them and asking them nicely to purchase my app).

In addition, once a user has used my app for a certain amount of usage, I limit functionality and direct the pirates to the App Store for full functionality.




回答2:


To my knowledge, there's only one way to remove DRM: Crackulous.

So to find out what to look for in a cracked application, I would run Crackulous on your app and compare the app bundles. It should be fairly easy to determine what's been changed by looking at filesizes and running a diff on the files in the bundle.

Once you know what the changes are and to what file(s), just look for those changes in your application to determine if the application has been cracked.

If you find out exactly which files should be checked, please post your findings here so others can benefit from your research.




回答3:


My previous Stack Overflow question may help you out: Reducing piracy of iPhone applications




回答4:


Its probably worth pointing out that there are no casual "pirates". Casual users cannot download your app from the app store without buying it. All the DRM-removal schemes require to be run on a legitimately purchased copy.

As to looking at the bundle for changes, as I recall all you need to do is step through the link-loader commands and ensure that the code bundle is still tagged as encrypted. No need to compare it with anything. You'll need to read about Mach-O file format to do this, but thats not difficult, its all documented on developer.apple.com



来源:https://stackoverflow.com/questions/1929166/how-to-programmatically-determine-if-drm-was-removed-from-iphone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!