Fix possible bug when handling passwords with unicode characters #2

This commit is contained in:
Daniel Goldberg 2018-04-17 14:23:00 +03:00
parent 558fa749ca
commit 4e5334f177
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class Telemetry(flask_restful.Resource):
for field in ['password', 'lm_hash', 'ntlm_hash']:
credential = attempts[i][field]
if len(credential) > 0:
attempts[i][field] = encryptor.enc(credential)
attempts[i][field] = encryptor.enc(credential.encode('utf-8'))
TELEM_PROCESS_DICT = \