From 1df90958c1d4f2cdfab5c3d220a8eac4e460acc6 Mon Sep 17 00:00:00 2001 From: senzee <33692631+senzee1984@users.noreply.github.com> Date: Tue, 9 Jan 2024 20:04:02 -0500 Subject: [PATCH] Update PrependedShellcodeStub.py --- PrependedShellcodeStub.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PrependedShellcodeStub.py b/PrependedShellcodeStub.py index 89426fb..a15c820 100644 --- a/PrependedShellcodeStub.py +++ b/PrependedShellcodeStub.py @@ -197,12 +197,12 @@ CODE = ( "update_entry:" " sub [r8], r14;" # Update the address -#" int3;" " mov r8, r11;" # Restore r8 " add rsi, 2;" # Move to next entry by adding 2 bytes " jmp loop_reloc_entries;" "next_block:" +" add rsi, 2;" " jmp loop_reloc_block;" "reloc_fixed_end:" @@ -213,10 +213,6 @@ CODE = ( " nop;" " nop;" " nop;" -" nop;" -" nop;" -" nop;" -" nop;" " jmp r15;" ) @@ -232,7 +228,7 @@ def print_byte_array(byte_array, line_length=20, max_lines=30): print(f"buf += b\"{formatted_line}\"") print("......"+str(len(byte_array)-600) +" more bytes......") -pe_file_path = 'dumped.bin' +pe_file_path = 'calc.bin' pe_array = read_pe_file(pe_file_path)