如何检测“LocallAPStore” - 新的iap cracker [英] How to detect “LocallAPStore" - new iap cracker

查看:142
本文介绍了如何检测“LocallAPStore” - 新的iap cracker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检测到这样的IAP Cracker:

I detect IAP Cracker like this:

if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){
    NSLog(@"IAP Cracker detected");
}

如何检测LocallAPStore?

How can I detect LocallAPStore?

推荐答案

解压缩这个hack的Debian软件包,你可以看到它与IAP cracker的结构几乎完全相同。所以,您可以写:

After extracting the Debian package of this hack, you can see that it has almost exactly the same structure as IAP cracker. So, you can write:

if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/LocalIAPStore.dylib"]) {
    NSLog(@"Local IAP Store detected");
}

顺便说一下,使用这种方法效果不是很好。我敢肯定,如果很多开发人员使用这种方法,这些调整的制造商将在动态库中加入另一个钩子,使检测变得不可能,例如可以挂钩 - [NSFileManager fileExistsAtPath:] 并检查路径是否等于dylib的路径,并在这种情况下无条件地返回 NO

By the way, using this method is not quite effective. I'm sure that if a lot of developers use this approach, the makers of these tweaks will incorporate another hook into the dynamic library that makes the detection impossible, for example one can hook - [NSFileManager fileExistsAtPath:] and check if the path is equal to the dylib's path and unconditionally return NO in this case.

因此,如果您想使用应用内购买,最好使用自己的服务器进行验证。

So, it is preferred that you use your own server for verification in case you want to use in-app purchases.

这篇关于如何检测“LocallAPStore” - 新的iap cracker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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