Skip to content

Instantly share code, notes, and snippets.

@amustaque97
Created October 20, 2019 17:28
Show Gist options
  • Save amustaque97/29bbbd5fb1bcc04b1bc155abacf15b3f to your computer and use it in GitHub Desktop.
Save amustaque97/29bbbd5fb1bcc04b1bc155abacf15b3f to your computer and use it in GitHub Desktop.
Blade Challenge
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