Skip to content

Instantly share code, notes, and snippets.

@DreamDevLost
Created December 1, 2019 03:33
Show Gist options
  • Save DreamDevLost/113277fce9c9fe0c5ee11c860328715f to your computer and use it in GitHub Desktop.
Save DreamDevLost/113277fce9c9fe0c5ee11c860328715f to your computer and use it in GitHub Desktop.
NSString *pfpath = [[NSBundle mainBundle] privateFrameworksPath];
// Load all fucking frameworks motherfocker
for (NSString *dir in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pfpath error:NULL]) {
NSMutableString *fpath = [pfpath mutableCopy];
NSArray *components = [dir componentsSeparatedByString:@"."];
NSString *fname = components[0];
[fpath appendFormat:@"/%@/%@", dir, fname];
//NSLog(@"dir?? = %@", fpath);
dlopen([fpath UTF8String], RTLD_NOW);
NSLog(@"dlopen error?? = %s", dlerror());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment