buu Crypto学习记录(13) 丢失的MD5

题目链接:https://buuoj.cn/challenges#%E4%B8%A2%E5%A4%B1%E7%9A%84MD5

题目

import hashlib   
for i in range(32,127):
    for j in range(32,127):
        for k in range(32,127):
            m=hashlib.md5()
            m.update('TASC'+chr(i)+'O3RJMV'+chr(j)+'WDJKX'+chr(k)+'ZM')
            des=m.hexdigest()
            if 'e9032' in des and 'da' in des and '911513' in des:
                print des

写个脚本跑出flag

import hashlib
for i in range(32,127):
    for j in range(32,127):
        for k in range(32,127):
           m = hashlib.md5()
           s = 'TASC' + chr(i) + 'O3RJMV' + chr(j) + 'WDJKX' + chr(k) + 'ZM'
           m.update(s.encode("utf8"))
           des = m.hexdigest()
           if 'e9032' in des and 'da' in des and '911513' in des:
              print(des)
              break

flag:e9032994dabac08080091151380478a2

你可能感兴趣的:(buu,crypto)