Skip to content

Instantly share code, notes, and snippets.

@xermicus
Created November 9, 2016 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xermicus/0de6ddb30caf483627b8c64318d40858 to your computer and use it in GitHub Desktop.
Save xermicus/0de6ddb30caf483627b8c64318d40858 to your computer and use it in GitHub Desktop.
# http://crackmes.de/users/geyslan/crackme.02.32/
import random
random.seed()
password = ''
secret = '\xf7\xf8\xf1\xf4\xf1\xf8\xb3\xfc\xfc'
for i in range(len(secret)):
candidates = ''
for c in range(0x20, 0x7e):
if c | 0x90 == ord(secret[i]):
candidates += chr(c)
password += candidates[random.randint(0, len(candidates)-1)]
print(password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment