-
Rainbow table을 이용한 패스워드 크랙Pentesting/Web 2019. 7. 17. 16:09
import hashlib import re def searchstr(): f = open("hash.txt", 'r') pwd = open("pwDic.txt",'r') total = 0 str = f.read() while True: line = pwd.readline().rstrip() if not line: break result = hashlib.sha256(line).hexdigest().upper() if str.find(result) > 0: total += 1 print "[+] Finding..[%d] : %s" % (total,line) print ("Success") searchstr()