From b6045d9c78905b9ea6e64d9a4d1c0bba31672dcd Mon Sep 17 00:00:00 2001 From: Dobin Date: Fri, 5 Jul 2024 10:44:40 +0100 Subject: [PATCH] refactor: more debug --- phases/injector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phases/injector.py b/phases/injector.py index 558d359..9cab84f 100644 --- a/phases/injector.py +++ b/phases/injector.py @@ -205,7 +205,9 @@ class Injector(): raise Exception("IatResolve: Call to IAT has different length than placeholder: {} != {} abort".format( len(jmp), len(placeholder) )) + idx = code.index(placeholder) code = code.replace(placeholder, jmp) + asm_disasm(code[idx:idx+7]) self.superpe.write_code_section_data(code)