Modified logging of cleartext credentials

This commit is contained in:
Yannick Méheut 2016-01-10 20:47:08 +01:00
parent 392257be36
commit ac1789dd6c

View file

@ -173,7 +173,10 @@ def SaveToDb(result):
# Write JtR-style hash string to file
with open(logfile,"a") as outf:
outf.write(result['fullhash'])
if len(result['cleartext']):
outf.write('%s:%s' % (result['user'], result['cleartext']))
else:
outf.write(result['fullhash'])
outf.write("\n")
outf.close()