I was looking for a way to detect people using IAPCracker in my application.
Lately I found this useful post How to detect “LocallAPStore" - new iap cracker and used it to protect some of my in-app-purchases.
Now I found a new source of cracking in-app-...you know. So I installed this new tweak called IAPFree which was a new way of cracking IAPs. I tested it on some apps and my own app and it worked, which is not good!
I tried to detect it by the same way as the IAPCracker:
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){
NSLog(@"IAP Cracker detected");
}
But the name of the file was unfortunately changed to "iapfree.core.dylib" (I opened IFile and found the file in the same directory).
Now I thought I could simply replace the directory. However, it doesn't worked! I used this code to detect it somehow:
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iapfree.core.dylib"]){
NSLog(@"IAPfree detected");
}else{
NSLog(@"No IAPFree found");
}
I thought this would be an random error and I tried it with other files in the same directory. They did worked!
I can't figure out whats the problem with this file. I think it could be caused by the ".core.", but actually I don't know.
Do you know how to solve the problem or detect it in another way?