Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit a9878ba

Browse files
author
mpgn
authored
Merge pull request #603 from Hackndo/master
Compatibility with lsassy v3.1.3
2 parents 90c74b7 + e8947d6 commit a9878ba

File tree

4 files changed

+252
-209
lines changed

4 files changed

+252
-209
lines changed

cme/modules/lsassy_dump.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def on_admin_login(self, context, connection):
5252
context.log.error("Couldn't connect to remote host")
5353
return False
5454

55-
dumper = Dumper(session, timeout=10).load(self.method)
55+
dumper = Dumper(session, timeout=10, time_between_commands=7).load(self.method)
5656
if dumper is None:
5757
context.log.error("Unable to load dump method '{}'".format(self.method))
5858
return False
@@ -66,13 +66,13 @@ def on_admin_login(self, context, connection):
6666
if parsed is None:
6767
context.log.error("Unable to parse lsass dump")
6868
return False
69-
credentials, tickets = parsed
69+
credentials, tickets, masterkeys = parsed
7070

7171
file.close()
7272
ImpacketFile.delete(session, file.get_file_path())
7373
if credentials is None:
7474
credentials = []
75-
credentials = [cred.get_object() for cred in credentials if not cred.get_username().endswith("$")]
75+
credentials = [cred.get_object() for cred in credentials if cred.ticket is None and cred.masterkey is None and not cred.get_username().endswith("$")]
7676
credentials_unique = []
7777
credentials_output = []
7878
for cred in credentials:

0 commit comments

Comments
 (0)