From f1b7fb67067d4cb062e991015f76aff28a071c53 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Wed, 16 Aug 2017 16:13:31 +0300 Subject: [PATCH] Fix unicode problem --- chaos_monkey/system_info/mimikatz_collector.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chaos_monkey/system_info/mimikatz_collector.py b/chaos_monkey/system_info/mimikatz_collector.py index c3781f371..1fd40480c 100644 --- a/chaos_monkey/system_info/mimikatz_collector.py +++ b/chaos_monkey/system_info/mimikatz_collector.py @@ -43,8 +43,9 @@ class MimikatzCollector: for i in range(entry_count): entry = self._get() - username = entry.username - password = entry.password + # TODO: Consider what to do when string can't be ascii + username = str(entry.username) + password = str(entry.password) lm_hash = binascii.hexlify(bytearray(entry.lm_hash)) ntlm_hash = binascii.hexlify(bytearray(entry.ntlm_hash)) has_password = (0 != len(password))