Buuctf-crypto-丢失的MD5

首先打开之后是一个py文件,本地跑一下,出错

Buuctf-crypto-丢失的MD5

 

 显示说,

Buuctf-crypto-丢失的MD5

 

 源码为:

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

  

修改后:

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'.encode('utf-8')+chr(i).encode('utf-8')+'O3RJMV'.encode('utf-8')+chr(j).encode('utf-8')+'WDJKX'.encode('utf-8')+chr(k).encode('utf-8')+'ZM'.encode('utf-8'))
            des=m.hexdigest()
            if 'e9032' in des and 'da' in des and '911513' in des:
                print (des)

  

运行之后得flag

上一篇:Buuctf-crypto-[GKCTF2020]小学生的密码学


下一篇:*crypto*--- 复盘--巅峰极客2020-tryrsa