Created
October 17, 2016 19:00
-
-
Save xermicus/50d6fff2913d80d9ce1d7a6baa0cea98 to your computer and use it in GitHub Desktop.
fr0g_kgm1 | crackmes.de
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
# 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