feature: datareuse initial commit

This commit is contained in:
Dobin
2024-02-24 08:51:58 +00:00
parent b032c3f9db
commit 334b17e7a5
3 changed files with 141 additions and 2 deletions
+4 -2
View File
@@ -74,10 +74,12 @@ class ExeInfo():
if hasattr(pe, 'DIRECTORY_ENTRY_BASERELOC'):
for base_reloc in pe.DIRECTORY_ENTRY_BASERELOC:
for entry in base_reloc.entries:
entry_rva = entry.rva
rva = entry.rva
base_rva = entry.base_rva
reloc_type = pefile.RELOCATION_TYPE[entry.type][0]
self.base_relocs.append({
'rva': entry_rva,
'rva': rva,
'base_rva': base_rva,
'type': reloc_type,
})