mirror of
https://github.com/valitydev/Cortex-Analyzers.git
synced 2024-11-07 09:28:58 +00:00
fix check issue
This commit is contained in:
parent
c9cedcf700
commit
2b5def9ee1
@ -67,17 +67,18 @@ class PESubmodule(SubmoduleBaseclass):
|
||||
def pe_info(self, pe):
|
||||
pedict = pe.dump_dict()
|
||||
table = []
|
||||
for fileinfo in pe.FileInfo:
|
||||
if hasattr(fileinfo, 'Key') and fileinfo.Key.decode() == 'StringFileInfo':
|
||||
for stringtable in fileinfo.StringTable:
|
||||
for entry in stringtable.entries.items():
|
||||
table.append({'Info': entry[0].decode(), 'Value': entry[1].decode()})
|
||||
if hasattr(pe, 'FileInfo'):
|
||||
for fileinfo in pe.FileInfo:
|
||||
if hasattr(fileinfo, 'Key') and fileinfo.Key.decode() == 'StringFileInfo':
|
||||
for stringtable in fileinfo.StringTable:
|
||||
for entry in stringtable.entries.items():
|
||||
table.append({'Info': entry[0].decode(), 'Value': entry[1].decode()})
|
||||
|
||||
table.append({'Info': 'Compilation Timestamp',
|
||||
'Value': self.compilation_timestamp(pedict)})
|
||||
table.append({'Info': 'Target machine', 'Value': self.pe_machine(pedict)}),
|
||||
table.append({'Info': 'Entry Point', 'Value': self.pe_entrypoint(pedict)})
|
||||
return table
|
||||
table.append({'Info': 'Compilation Timestamp',
|
||||
'Value': self.compilation_timestamp(pedict)})
|
||||
table.append({'Info': 'Target machine', 'Value': self.pe_machine(pedict)}),
|
||||
table.append({'Info': 'Entry Point', 'Value': self.pe_entrypoint(pedict)})
|
||||
return table
|
||||
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user