Fix unicode problem
This commit is contained in:
parent
60d64c4e6b
commit
f1b7fb6706
|
@ -43,8 +43,9 @@ class MimikatzCollector:
|
||||||
|
|
||||||
for i in range(entry_count):
|
for i in range(entry_count):
|
||||||
entry = self._get()
|
entry = self._get()
|
||||||
username = entry.username
|
# TODO: Consider what to do when string can't be ascii
|
||||||
password = entry.password
|
username = str(entry.username)
|
||||||
|
password = str(entry.password)
|
||||||
lm_hash = binascii.hexlify(bytearray(entry.lm_hash))
|
lm_hash = binascii.hexlify(bytearray(entry.lm_hash))
|
||||||
ntlm_hash = binascii.hexlify(bytearray(entry.ntlm_hash))
|
ntlm_hash = binascii.hexlify(bytearray(entry.ntlm_hash))
|
||||||
has_password = (0 != len(password))
|
has_password = (0 != len(password))
|
||||||
|
|
Loading…
Reference in New Issue