Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Detect evasi0n, Cydia, AdBlocker on iOS 6.1
- // Detect evasi0n
- NSString *filePath = @"/private/var/evasi0n/evasi0n";
- if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
- {
- // evasi0n detected do something
- }
- // Detect Cydia
- NSString *filePath = @"/Applications/Cydia.app";
- if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
- {
- // Cydia detected do something
- }
- or
- NSURL* url = [NSURL URLWithString:@"cydia://package/com.cydia.detect"];
- return [[UIApplication sharedApplication] canOpenURL:url];
- // Detect AdBlocker (AdBlocker blocks Google Admob, AdSense and iAds)
- NSString *filePath = @"/Library/MobileSubstrate/DynamicLibraries/AdBlocker.dylib";
- if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
- {
- // AdBlocker (from Cydia) detected do something
- }
- // Detect AppCake App (Cracked Apps)
- NSString *filePath = @"/Applications/AppCake3.app/AppCake3";
- if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])
- {
- // AppCake (repo from Cydia) detected do something
- }
- --
- >find / -name "AdBlock*"
- /Library/MobileSubstrate/DynamicLibraries/AdBlocker.dylib
- /Library/MobileSubstrate/DynamicLibraries/AdBlocker.plist
- /Library/PreferenceLoader/Preferences/AdBlocker.plist
- /System/Library/PreferenceBundles/AdBlockerPreferences.bundle
- /System/Library/PreferenceBundles/AdBlockerPreferences.bundle/AdBlockerPreferences
- /System/Library/PreferenceBundles/AdBlockerPreferences.bundle/AdBlockerPreferences.plist
- /private/var/mobile/Library/SBSettings/Toggles/AdBlocker
- >find / -name "evasi0n*"
- /private/var/evasi0n
- /private/var/evasi0n/evasi0n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement