Update PrependedShellcodeStub.py

This commit is contained in:
senzee
2024-01-09 20:04:02 -05:00
committed by GitHub
parent baef9c12c0
commit 1df90958c1
+2 -6
View File
@@ -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)