From 8ddac92429f1dfe318e1eadd1c68c2adf5675be2 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Mon, 2 Oct 2017 12:14:31 +0300 Subject: [PATCH] Fix mimikatz lowercase hostname comparison --- chaos_monkey/system_info/mimikatz_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaos_monkey/system_info/mimikatz_collector.py b/chaos_monkey/system_info/mimikatz_collector.py index c63b875f8..53f42ad4c 100644 --- a/chaos_monkey/system_info/mimikatz_collector.py +++ b/chaos_monkey/system_info/mimikatz_collector.py @@ -51,7 +51,7 @@ class MimikatzCollector: if 0 == len(password): has_password = False - elif (username[-1] == '$') and (hostname.lower() == username[0:-1]): + elif (username[-1] == '$') and (hostname.lower() == username[0:-1].lower()): # Don't save the password of the host domain user (HOSTNAME$) has_password = False else: