Skip to content

Instantly share code, notes, and snippets.

@lttn1204
Last active April 2, 2021 15:49
Show Gist options
  • Save lttn1204/5512121e580db18523776296148eb07b to your computer and use it in GitHub Desktop.
Save lttn1204/5512121e580db18523776296148eb07b to your computer and use it in GitHub Desktop.
from string import ascii_lowercase,ascii_uppercase
flag_enc="cvpbPGS{arkg_gvzr_V'yy_gel_2_ebhaqf_bs_ebg13_MAZyqFQj}"
flag=''
for i in flag_enc:
if i in ascii_lowercase:
flag+=ascii_lowercase[(ascii_lowercase.index(i)+13)%len(ascii_lowercase)]
elif i in ascii_uppercase:
flag+=ascii_uppercase[(ascii_uppercase.index(i)+13)%len(ascii_uppercase)]
else:
flag+=i
print(flag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment