Open sumous opened 3 years ago
@import Foundation;NSString* appDir = @"/var/containers/Bundle/Application/31CEF822-DB1D-4585-ABDE-F3DD229D7EC3/Butler.app"; NSMutableString* retStr = [NSMutableString string]; uint32_t count = (uint32_t)_dyld_image_count(); for(uint32_t i = 0; i < count; i++){ char* curModuleName_cstr = (char*)_dyld_get_image_name(i); long slide = (long)_dyld_get_image_vmaddr_slide(i); uintptr_t baseAddr = (uintptr_t)_dyld_get_image_header(i); NSString* curModuleName = @(curModuleName_cstr); if([curModuleName containsString:appDir]) { [retStr appendString:(id)[@(i) stringValue]]; [retStr appendString:@","]; [retStr appendString:@(curModuleName_cstr)]; [retStr appendString:@"#"]; } } retStr