0cyn/ktool

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

kandji-alex opened this issue · 3 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() - 
0cyn commented

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

0cyn commented

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

Should be good now.