Skip to content

Instantly share code, notes, and snippets.

@xermicus
Created October 17, 2016 19:00
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 xermicus/50d6fff2913d80d9ce1d7a6baa0cea98 to your computer and use it in GitHub Desktop.
Save xermicus/50d6fff2913d80d9ce1d7a6baa0cea98 to your computer and use it in GitHub Desktop.
fr0g_kgm1 | crackmes.de
# http://crackmes.de/users/fr0gsek/fr0g_kgm1/
key = 'SeRiAlAbCdEfGhIjKlMnOpQrStUvWxYz'[::-1]
user = ''
while len(user) < 5:
user = input('login [min 5 chars]: ')
serial = ''
for i in range(32):
serial += chr(ord(key[i]) ^ ord(user[i - len(user) * (i//len(user))]))
print("Trying to write your serial to file '/var/tmp/thegame.serial' ...")
with open("/var/tmp/thegame.serial", "w") as out:
out.write(serial[::-1])
print("Succcess! You can now use your login '" + user + "'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment