diff --git a/utils.py b/utils.py index c391a43..9b4833f 100644 --- a/utils.py +++ b/utils.py @@ -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()