Open mountainstorm opened 8 years ago
I'm fast loading PE's:
pe = PE(path, fast_load=True)
then manually loading various directories e.g.:
pe.parse_data_directories(pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_DEBUG'])
After trying over a lot of data I've found some issues where a file appears to be a PE i.e. PE() doesn't throw an exception; but when loading the directory I get an error as self doesn't have an OPTIONAL HEADER (line 2369):
dir_entry = self.OPTIONAL_HEADER.DATA_DIRECTORY[directory_index]
can you provide a snippet of code with a sample please?
I'm fast loading PE's:
pe = PE(path, fast_load=True)
then manually loading various directories e.g.:
pe.parse_data_directories(pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_DEBUG'])
After trying over a lot of data I've found some issues where a file appears to be a PE i.e. PE() doesn't throw an exception; but when loading the directory I get an error as self doesn't have an OPTIONAL HEADER (line 2369):
dir_entry = self.OPTIONAL_HEADER.DATA_DIRECTORY[directory_index]