How to detect "LocallAPStore" - new iap cracker

I detect IAP Cracker as follows:

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

How can I detect LocallAPStore?

+3
source share
3 answers

After extracting the Debian package for this hack, you will see that it has almost the same structure as the 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 entirely effective. I am sure that if many developers use this approach, the creators of these settings will include another hook in a dynamic library that makes detection impossible, for example, you can connect - [NSFileManager fileExistsAtPath:] and check if the path path is dylib and unconditionally return NO in this case.

Thus, you prefer to use your own server for verification if you want to use in-app purchases.

+5
source
0
source

Alternatively, you can use the dyld (or Objective-C runtime) functions to determine if the library is loaded. If so, try unloading it.

0
source

All Articles