还原大师

image-20240602212501216

我一开始还在想是不是要了解MD5的编码规则然后自己写

然后突然发现,我将问号设成未知数然后遍历可能的范围,将其解码之后在此编码不就可以了,woc,天才

import hashlib
import string

def md5(str):
m = hashlib.md5()
m.update(str.encode("utf8"))
return m.hexdigest()

for i in string.ascii_uppercase:
for j in string.ascii_uppercase:
for k in string.ascii_uppercase:
c = 'TASC' + i + 'O3RJMV' + j + 'WDJKX' + k + 'ZM'
x = md5(c).upper()
if 'E903' in x and '4DAB' in x and '08' in x and '51' in x and '80' in x and '8A' in x:
print(c)
print(x)
break

OK了