forked from p15670423/monkey
Fix possible bug when handling passwords with unicode characters #2
This commit is contained in:
parent
558fa749ca
commit
4e5334f177
|
@ -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 = \
|
||||
|
|
Loading…
Reference in New Issue