Created
October 20, 2019 17:28
-
-
Save amustaque97/29bbbd5fb1bcc04b1bc155abacf15b3f to your computer and use it in GitHub Desktop.
Blade Challenge
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
import sys | |
def print_flag(): | |
flag_hex = [111,104,101,114,96,108,125,103,106,106,89,114,110,99,117, | |
99,89,107,105,107,99,104,114,117,89,106,105,117,114,89,111,104,89,114,111,107,99,123] | |
i = 0 | |
while ( i < 38): | |
sys.stdout.write(chr(flag_hex[i] ^ 6)) | |
i += 1 | |
input = raw_input('why did you save me? ') | |
if input == 'to_say_something': | |
print_flag() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment