Last active
December 28, 2015 23:39
-
-
Save potetisensei/7580055 to your computer and use it in GitHub Desktop.
CSCamp bin100
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
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