Fixed credential parsing bug

1.6
sixdub 2015-08-24 18:42:32 -04:00
parent b2cca2f3fd
commit 32e95b4f93
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@
-Added /sids argument for credentials/mimikatz/golden_ticket
-Added credential parsing for dcsync output
-updated links for PowerTools
-Fixed bug in credential parsing with ":" inside of the password,username, or domain
8/20/2015
---------

View File

@ -244,11 +244,12 @@ def parse_mimikatz(data):
for line in lines2:
try:
if "Username" in line:
username = line.split(":")[1].strip()
username = line.split(":",1)[1].strip()
elif "Domain" in line:
domain = line.split(":")[1].strip()
domain = line.split(":",1)[1].strip()
elif "NTLM" in line or "Password" in line:
password = line.split(":")[1].strip()
print line.split(":")
password = line.split(":",1)[1].strip()
except:
pass