Skip to content

Instantly share code, notes, and snippets.

@nk0t
Created September 5, 2013 13:18
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 nk0t/6449981 to your computer and use it in GitHub Desktop.
Save nk0t/6449981 to your computer and use it in GitHub Desktop.
ASIS CTF RE/License Key
flag = [[0,-0x0f], [1,-0x12], [2,-0x29], [3,-0x13], [4,-0x06],
[5,-0x2e], [6,-0x13], [6,-0x10], [5,-0x2e],
[4,-0x33], [3,-0x33], [2,-0x0c], [1,-0x34],
[0,+0x16], [0,-0x1e], [2,-0x0d], [4,+0x01],
[6,-0x12], [1,-0x03], [3,-0x03], [5,-0x30],
[0,+0x12], [3,-0x2e], [6,-0x44], [1,-0x31],
[4,-0x02], [2,-0x39], [5,-0x2f], [0,-0x18],
[6,-0x0f], [1,-0x31], [5,-0x2f], [2,-0x3a],
[4,-0x33], [3,-0x32], [3,-0x2e], [6,-0x3d]]
asis = map(ord, 'ASIS_')
print [chr(a-b[1]) for (a,b) in zip(asis,flag[0:5])]
# Perfe -> Perfect
key = map(ord, 'Perfect')
print ''.join([chr((key[f[0]] + f[1])) for f in flag])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment