Skip to content

Instantly share code, notes, and snippets.

@potetisensei
Last active December 28, 2015 23:39
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 potetisensei/7580055 to your computer and use it in GitHub Desktop.
Save potetisensei/7580055 to your computer and use it in GitHub Desktop.
CSCamp bin100
from hashlib import md5
from sys import exit
def check(s):
vals = [1310, 1450, 1435, 1316, 1302, 1439]
return all(ord(s[i*3])^1337 == vals[i] for i in range(6))
chars = ["", "_"] + [chr(i) for i in range(ord("A"), ord("Z")+1)] + [chr(i) for i in range(ord("a"), ord("z")+
1)]
password = "6sZh2HZCx3DI66Xs"
flag = "JH34ZqIx5AOzN34sA4xJzA22As5"
for a in chars:
for b in chars:
for c in chars:
for d in chars:
user = a + b + c + d
if check(md5("_P4d11n9_" + user + "_P4d11n9_").digest()):
print md5(":".join([user, password, flag])).hexdigest()
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment