You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kritanta edited this page Aug 13, 2021
·
1 revision
Loading a mach-o file:
fromktool.machoimportMachOFilefromktool.dyldimportDyldfromktool.objcimportObjCLibrarywithopen(scriptdir+'/bins/Search', 'rb') asfd:
macho_file=MachOFile(fd)
# If the file is thin, the first slice will be the only slicefirst_slice=macho_file.slices[0]
# Dyld is a static class that emulates the functionality of dyld by loading in a slice and processing its load commands/symbolsdyld_library=Dyld.load(first_slice)
# Load in objc Data if needed.objc_library=ObjCLibrary(dyld_library)