8 lines
230 B
Python
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) |