Skip to content

Instantly share code, notes, and snippets.

@iMokhles
Created February 27, 2018 16:53
Show Gist options
  • Save iMokhles/40547701704b1f99c38a128a504fd4a4 to your computer and use it in GitHub Desktop.
Save iMokhles/40547701704b1f99c38a128a504fd4a4 to your computer and use it in GitHub Desktop.
OStoreSN_decrypted.dylib
// الكود المسئول عن عدم التكرار على اي بندل
// بعد فك التشفير
NSString *laptop_bundleIdentifier() {
NSString *origBundleId = @"othman.store.snapchat2";
NSArray *array1 = [NSArray arrayWithObjects:@"othman.store.snapchat", @"com.toyopagroup.picaboo", nil];
for ( int i = 0; i < 2; ++i ){
NSString *decryptedString = [array1 objectAtIndex:i];
NSMutableArray *array1Mutable = [array1 mutableCopy];
[array1Mutable setObject:decryptedString atIndexedSubscript:i];
array1 = [NSArray arrayWithArray:array1Mutable];
}
NSUInteger bundleIdLength = [origBundleId length];
NSString *subBundleId = [origBundleId substringToIndex:bundleIdLength-1];
NSString *firstInArray = [array1 objectAtIndex:0];
NSString *subBundleId2 = [origBundleId substringToIndex:bundleIdLength-2];
BOOL isMyBundle = YES;
if (![subBundleId isEqualToString:firstInArray]) {
BOOL isMyBundle2 = NO;
if ([subBundleId2 isEqualToString:firstInArray]) {
isMyBundle2 = YES;
}
isMyBundle = isMyBundle2;
}
if (isMyBundle) {
NSString *secondInArray = [array1 objectAtIndex:1];
origBundleId = secondInArray;
}
return origBundleId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment