title: How to detect IAPFree and IAPCracker
body: <p>I was looking for a way to detect people using IAPCracker in my application.</p>
  
  <p>Lately I found this useful post <a href="https://stackoverflow.com/questions/13325924/how-to-detect-locallapstore-new-iap-cracker">How to detect “LocallAPStore&quot; - new iap cracker</a> and used it to protect some of my in-app-purchases. </p>
  
  <p>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!</p>
  
  <p><img src="https://i.stack.imgur.com/X11Omm.png" alt="enter image description here"></p>
  
  <p>I tried to detect it by the same way as the IAPCracker:</p>
  
  <pre><code>if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){
      NSLog(@"IAP Cracker detected");
  }
  </code></pre>
  
  <p>But the name of the file was unfortunately changed to "iapfree.core.dylib"
  (I opened IFile and found the file in the same directory).</p>
  
  <p>Now I thought I could simply replace the directory. However, it doesn't worked!
  I used this code to detect it somehow:</p>
  
  <pre><code>if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iapfree.core.dylib"]){
      NSLog(@"IAPfree detected");
  }else{
  NSLog(@"No IAPFree found");
  }
  </code></pre>
  
  <p>I thought this would be an random error and I tried it with other files in the same directory. They did worked!</p>
  
  <p>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.</p>
  
  <p>Do you know how to solve the problem or detect it in another way?</p>