forked from mitre/caldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bug fix * removing set_id * removing set_id from database * last of set_id remnants
- Loading branch information
1 parent
d00b7c0
commit 16249e2
Showing
7 changed files
with
14 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
|
||
def mimikatz(blob, **kwargs): | ||
set_id = 0 | ||
matched_facts = [] | ||
list_lines = blob.split('\n') | ||
for i, line in enumerate(list_lines): | ||
if 'Username' in line and '(null)' not in line: | ||
value = line.split(':')[1].strip() | ||
if value[-1] is not '$': | ||
username_fact = dict(fact='host.user.name', value=value, set_id=set_id) | ||
username_fact = dict(fact='host.user.name', value=value) | ||
if 'Password' in list_lines[i + 2] and '(null)' not in list_lines[i + 2]: | ||
password_fact = dict(fact='host.user.password', value=list_lines[i + 2].split(':')[1].strip(), | ||
set_id=set_id) | ||
password_fact = dict(fact='host.user.password', value=list_lines[i + 2].split(':')[1].strip()) | ||
matched_facts.append(password_fact) | ||
matched_facts.append(username_fact) | ||
set_id += 1 | ||
return matched_facts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters