Samsung_S7/source/exploit/modify_bin.py

8 lines
230 B
Python
Raw Normal View History

2024-08-12 14:57:40 +00:00
# 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)