Samsung_S7/source/exploit/modify_bin.py
Jonathan Herrewijnen 19d20965db updated docs
2024-08-12 16:57:40 +02:00

8 lines
230 B
Python

# Open a binary file and modify it
bl1 = open('../S7/bl1.bin', 'rb').read()
# Modify the binary file at 1C10
bl1 = bl1[:0x1C1C] + b'\x48' + bl1[0x1C1D:]
# Write the modified binary file
open('../S7/bl1_mod.bin', 'wb').write(bl1)