Fix mimikatz lowercase hostname comparison

This commit is contained in:
Itay Mizeretz 2017-10-02 12:14:31 +03:00
parent a04f34bb41
commit 8ddac92429
1 changed files with 1 additions and 1 deletions

View File

@ -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: