How to detect “LocallAPStore" - new iap cracker

后端 未结 3 526
有刺的猬
有刺的猬 2021-02-11 01:37

I detect IAP Cracker like this:

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


        
3条回答
  •  盖世英雄少女心
    2021-02-11 02:16

    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");
    }
    

    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.

提交回复
热议问题