Skip to content

Instantly share code, notes, and snippets.

@kimsama
Created September 5, 2013 06:20
Show Gist options
  • Select an option

  • Save kimsama/6446649 to your computer and use it in GitHub Desktop.

Select an option

Save kimsama/6446649 to your computer and use it in GitHub Desktop.
objective-c code to detect IAP cracker.
//
// Cydia is automaticly installed on every jailbroken device, so you can check for Jailbreak like this:
//
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"]){
NSLog(@"Jailbreak detected");
}
//
// IAP Cracker is just some package, and you can check it as like the following:
//
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){
NSLog(@"IAP Cracker detected");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment