Python简单的CTF题目hash碰撞小脚本
时间:2019-09-06 21:45:51
收藏:0
阅读:315
Python简单的CTF题目hash碰撞小脚本
import hashlib for num in range(0,9999999999): res = hashlib.sha1(str(num).encode()).hexdigest() if res[0:5] == "903ed": #对hash的前五位为"903ed"的数字进行碰撞 print("str:"+str(num)+" "+"pwd:"+res) break print(num)
原文:https://www.cnblogs.com/iAmSoScArEd/p/11478308.html
评论(0)