【发布时间】:2019-11-24 07:45:40
【问题描述】:
如何修复此脚本未显示任何数据:
这是我的代码:
from hashlib import md5
counter = 1
pass_in = input('Enter the md5 hash: ')
pwfile = input('Please enter the passowrd file: ')
try:
pwfile = open(pwfile,'r')
except:
print('\nfile not found')
quit()
for password in pwfile:
filemd5 = md5()
filemd5.update(password.strip().encode('utf-8'))
filemd5.hexdigest()
print('Trying password number')
counter += 1
if pass_in == filemd5:
print('\n Match Found. \nPassword is: %s' + password)
break
else:
print('\n password not found!')
我忘记了什么?
有什么问题?
【问题讨论】:
标签: python python-3.x md5 hashlib cracking