Hackvent_2019/Day 24/decode.py
2020-01-10 21:03:58 +01:00

7 lines
226 B
Python

BUFFER = list(bytes.fromhex("09BC313A681AAB7247867EE64A1D6F042E74500D78063E"))
with open("rom.bin", "rb") as f:
BUFFER2 = list(f.read(len(BUFFER)))
print("".join(chr(BUFFER[i] ^ BUFFER2[i]) for i in range(len(BUFFER))))