丢失的MD5

丢失的MD5

1、题目

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')     //拼接加md5加密
            des=m.hexdigest()     //转化为16进制
            if 'e9032' in des and 'da' in des and '911513' in des:
                print des

2、解题脚本

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())
            des=m.hexdigest() 
            if 'e9032' in des and 'da' in des and '911513' in des:
                print(des)

3、获得答案

在这里插入图片描述

你可能感兴趣的:(CTF,BUUCTF刷题记录,python)