write-ups-challenges-2024-2025/the-in-between/solve.py
2024-11-25 22:33:31 +01:00

10 lines
420 B
Python

def XOR(var1,var2):
return bytes(a^b for a,b in zip(var1, var2))
KEY1 = bytes.fromhex("d6c51e2b8932bd58555d7d6ad8aef912c40eb05c1565ac6c2fea32562105b130afab825bb4a7130d")
KEY2_3 = bytes.fromhex("827460a08cd2bc810f0124fb65c63bc2a6aeea013554bd3afbdcc5256352865af9d10058313ad615")
Flag = bytes.fromhex("1df63ddf439b59b6281b2bf0c91d8eb116e9353373106c")
Result = XOR(XOR(KEY1,KEY2_3),Flag)
print(Result.decode('utf-8'))