Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/python
orig_flag = "10 20 15 44 53 62 14 33 6a 7d f7 c5 ab a7 12 3c 2c 81 00 ff ff"
xorkey_p1 = "76 4c 74 23 28 52 26 07 08 1c 96 fd ca c4 22 23 45 73 76 61 04"
orig_flag_array = [int(x,16) for x in orig_flag.split(" ")]
xorkey_p1_array = [int(x,16) for x in xorkey_p1.split(" ")]
flag = ""
for i in range(0,len(orig_flag_array)):
c = chr(orig_flag_array[i] ^ xorkey_p1_array[i])
flag += c
print flag
# flag{024baa8ac0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment