Created
August 7, 2017 03:58
-
-
Save CreateRemoteThread/bf9d0b235d0334e9b255b5c87f6da20c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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