【发布时间】:2020-12-07 22:05:33
【问题描述】:
我有这个代码:
import hashlib
pass_hash = input("Enter MD5 Hash: ")
wordlist = input("Wordlist name: ")
try:
pass_file = open(wordlist, 'r')
except FileNotFoundError:
print("File not found.")
quit()
def main():
counter = 0
print(f"List count: {str(counter)} Type: alphanum")
for word in pass_file:
encoded_word = word.encode('utf-8')
digest = hashlib.md5(encoded_word.strip()).hexdigest()
counter += 1
if digest == pass_hash:
print(f"Password found: {word}")
break
else:
print("Password not found")
main()
我正在尝试打印计数器当前阶段,例如 1 在同一行被 2 替换,然后被 3 等替换,直到密码哈希被破解。就像一个加载条,到目前为止只有数字迭代。
【问题讨论】:
标签: python passwords counter md5