0cyn / ktool

pip install k2l | Mach-O + Obj-C analysis TUI / CLI kit and library. Zero compiled deps, runs anywhere with a python interpreter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kandji-alex opened this issue · comments

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() - 

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

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.

Should be good now.