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
484 stars 24 forks source link

Load Command LOAD_COMMAND.DYLD_ENVIRONMENT doesn't have a mapped struct type #55

Closed kandji-alex closed 10 months ago

kandji-alex commented 1 year ago

Hello,

I get these errors when running Binary Refinery's machometa and trying to extract ImageHeader:

ERROR - ktool.macho:L#412:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#413:MachOImageHeader:from_image() - Load Command LOAD_COMMAND.DYLD_ENVIRONMENT doesn't have a mapped struct type
ERROR - ktool.macho:L#414:MachOImageHeader:from_image() - *Please* file an issue on the github @ https://github.com/cxnder/ktool
ERROR - ktool.macho:L#415:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#416:MachOImageHeader:from_image() - Run with the -f flag to hide this warning.
ERROR - ktool.macho:L#417:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#412:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#413:MachOImageHeader:from_image() - Load Command LOAD_COMMAND.DYLD_ENVIRONMENT doesn't have a mapped struct type
ERROR - ktool.macho:L#414:MachOImageHeader:from_image() - *Please* file an issue on the github @ https://github.com/cxnder/ktool
ERROR - ktool.macho:L#415:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#416:MachOImageHeader:from_image() - Run with the -f flag to hide this warning.
ERROR - ktool.macho:L#417:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#412:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#413:MachOImageHeader:from_image() - Load Command LOAD_COMMAND.DYLD_ENVIRONMENT doesn't have a mapped struct type
ERROR - ktool.macho:L#414:MachOImageHeader:from_image() - *Please* file an issue on the github @ https://github.com/cxnder/ktool
ERROR - ktool.macho:L#415:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#416:MachOImageHeader:from_image() - Run with the -f flag to hide this warning.
ERROR - ktool.macho:L#417:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#412:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#413:MachOImageHeader:from_image() - Load Command LOAD_COMMAND.DYLD_ENVIRONMENT doesn't have a mapped struct type
ERROR - ktool.macho:L#414:MachOImageHeader:from_image() - *Please* file an issue on the github @ https://github.com/cxnder/ktool
ERROR - ktool.macho:L#415:MachOImageHeader:from_image() - 
ERROR - ktool.macho:L#416:MachOImageHeader:from_image() - Run with the -f flag to hide this warning.
ERROR - ktool.macho:L#417:MachOImageHeader:from_image() - 
0cyn commented 1 year ago

Oh wow, what a cool project! Thanks for filing this issue!

0cyn commented 1 year ago

I've resolved this issue on the current github build, but as I'm in the middle of gutting some internals in the leadup to a 2.0, it may be a minute or 3 before this hits pypi (and thus, machometa). I'll keep this issue open until the fix lands in machometa.

0cyn commented 10 months ago

Should be good now.