refactor: improve iat re-init handling / performance

This commit is contained in:
Dobin
2024-05-13 18:44:02 +01:00
parent 7ceb0af5a4
commit 87d8741f32
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -53,8 +53,10 @@ def inject_exe(main_shc: bytes, settings: Settings, carrier: Carrier):
))
# do the patch
superpe.patch_iat_entry("KERNEL32.dll", iat_name, iatRequest.name)
# we modify the IAT raw, so reparsing is required
superpe.pe.parse_data_directories()
superpe.init_iat_entries()
shellcode_offset: int = 0 # file offset