0cyn / ktool

pip install k2l | Mach-O + Obj-C analysis TUI / CLI kit and library. Zero compiled deps, runs anywhere with a python interpreter.
MIT License
485 stars 24 forks source link

unable to dump frameworks extracted from dyld_shared_cache #59

Open t0rr3sp3dr0 opened 8 months ago

t0rr3sp3dr0 commented 8 months ago

I'm trying to class-dump CommerceKit from macOS 14.4 and ktool fails to do it:

% ktool dump --headers --fdec --out ./out ./CommerceKit
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#122:ObjCImage:from_image() - Failed to load a protocol with Address 0x0 couldn't be found in vm address set
ERROR - ktool.objc:L#1019:Category:from_image() - Couldn't load basic info about a Category: Address 0x20140cadc98 couldn't be found in vm address set
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940caceb8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacec0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacec8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940caced0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940caced8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacee0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacee8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacef0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacef8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf00 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf08 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf10 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf18 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf20 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf28 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf30 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf38 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf40 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf48 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf50 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf58 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf60 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf68 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf70 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf78 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf80 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf88 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf90 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacf98 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfa0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfa8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfb0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfb8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfc0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfc8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfd0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfd8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfe0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacfe8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacff0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cacff8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad000 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad008 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad010 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad018 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad020 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad028 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad030 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad038 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad040 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad048 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad050 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad058 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad060 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad068 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad070 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad078 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad080 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad088 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad090 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad098 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad0a0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad0a8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad0b0 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad0b8 - failed
ERROR - ktool.objc:L#690:Class:from_image() - Loading a class @ 0x940cad0c0 - failed

Here follows a copy of the binary:

CommerceKit.zip