Skip to content

Commit

Permalink
Fixed credential parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sixdub committed Aug 24, 2015
1 parent b2cca2f commit 32e95b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------
Expand Down
7 changes: 4 additions & 3 deletions lib/common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 32e95b4

Please sign in to comment.