I was looking for a way to detect people using IAPCracker in my application.
Recently I found this useful post How to detect "LocallAPStore" - a new iap cracker and used it to protect some of my in-app purchases.
Now I have found a new hacking source in the application ... you know. So I set up this new setting called IAPFree, which has become a new way to crack IAP. I tested it on some applications and my own application, and it worked, which is not very good!

I tried to detect it just like IAPCracker:
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){ NSLog(@"IAP Cracker detected"); }
But the file name, unfortunately, was changed to "iapfree.core.dylib" (I opened IFile and found the file in the same directory).
Now I thought I could just replace the directory. However, this did not work! I used this code to somehow detect it:
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iapfree.core.dylib"]){ NSLog(@"IAPfree detected"); }else{ NSLog(@"No IAPFree found"); }
I thought it would be a random error, and I tried it with other files in the same directory. They really worked!
I can not understand what the problem is with this file. I think this may be caused by ".core", but I really don't know.
Do you know how to solve a problem or detect it differently?
source share