题目是:Buuctf_crypto_还原大师
本篇写作原因:嗯?????我记得我这篇文章写过啊,怎么找不到了。在这传一下我改进的脚本:
import hashlib
k = 'TASC?O3RJMV?WDJKX?ZM'
for i in range(26):temp1 = k.replace('?',str(chr(65+i)),1)for j in range(26):temp2 = temp1.replace('?',chr(65+j),1)for n in range(26):temp3 = temp2.replace('?',chr(65+n),1)s = hashlib.md5(temp3.encode('utf8')).hexdigest().upper()if s[:4] == 'E903':print (s)print(temp3)
import hashlibdef calculate_md5(string):md5_hash = hashlib.md5()md5_hash.update(string.encode('utf-8'))md5_value = md5_hash.hexdigest()return md5_valueinput_string = "TASCJO3RJMVKWDJKXLZM"
md5_result = calculate_md5(input_string)
print(md5_result)
(我不确定这是不是我改进的那一版了,先放这吧)