Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created August 7, 2017 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CreateRemoteThread/bf9d0b235d0334e9b255b5c87f6da20c to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/bf9d0b235d0334e9b255b5c87f6da20c to your computer and use it in GitHub Desktop.
#!/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