Guest User

Untitled

a guest
Apr 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. NSString *imageName = NULL;
  2. int imagesCount = _dyld_image_count();
  3. for(int i = imagesCount; i != 0; i--) {
  4.  
  5. const struct mach_header *aHeader = _dyld_get_image_header(i);
  6. if(aHeader == mh) {
  7.  
  8. const char *imageNameString = _dyld_get_image_name(i);
  9. imageName = [[NSString alloc] initWithUTF8String: imageNameString];
  10. break;
  11. }
  12. }
  13.  
  14. if([imageName isEqualToString: kSystemConfigurationFrameworkPath] == YES) {
Add Comment
Please, Sign In to add comment