refactor: injector (EOP -> overwrite)

This commit is contained in:
Dobin Rutishauser
2025-06-21 14:06:50 +02:00
parent 1db212de53
commit a782fd0842
7 changed files with 319 additions and 303 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ class SuperPe():
# Add the difference to the section's pointer to raw data
physical_address = section.PointerToRawData + virtual_offset
return physical_address
raise Exception("Cant translate VA to offset")
raise Exception("Cant translate VA 0x{:X} to offset".format(virtual_address))
def write_pe_to_file(self, outfile: str):