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

Commit 38ca35d

Browse files
author
byt3bl33d3r
committed
Vss NTDS.dit dumping method back online
Updated README
1 parent b31ba6f commit 38ca35d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,5 @@ Yo put some screenshots here
154154
#To do
155155
- ~~Kerberos support~~
156156
- ~~Execute custom commands with mimikatz~~
157-
- Modularize the script (??)
158-
- Anything that could be useful!
157+
- Add a plugin system (??)
158+
- ~~0wn everything~~

core/scripts/secretsdump.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ def __decryptHash(self, record, rid=None, prefixTable=None, outputFile=None):
15721572

15731573
if self.__pwdLastSet is True:
15741574
answer = "%s (pwdLastSet=%s)" % (answer, pwdLastSet)
1575-
print answer
1575+
print_att(answer)
15761576

15771577
if self.__history:
15781578
LMHistory = []
@@ -1601,7 +1601,7 @@ def __decryptHash(self, record, rid=None, prefixTable=None, outputFile=None):
16011601
answer = "%s_history%d:%s:%s:%s:::" % (userName, i, rid, lmhash, hexlify(NTHash))
16021602
if outputFile is not None:
16031603
self.__writeOutput(outputFile, answer + '\n')
1604-
print answer
1604+
print_att(answer)
16051605
else:
16061606
logging.debug('Decrypting hash for user: %s' % record['pmsgOut']['V6']['pNC']['StringName'][:-1])
16071607
domain = None
@@ -2058,7 +2058,11 @@ def dump_NTDS(self, method, history, pwdLastSet):
20582058
def cleanup(self):
20592059
logging.info('Cleaning up... ')
20602060
if self.__remoteOps:
2061-
self.__remoteOps.finish()
2061+
try:
2062+
self.__remoteOps.finish()
2063+
except DCERPCException:
2064+
sleep(2)
2065+
self.__remoteOps.finish()
20622066
if self.__SAMHashes:
20632067
self.__SAMHashes.finish()
20642068
if self.__LSASecrets:

core/servers/mimikatz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def do_POST(self):
6060
print_error("Error while parsing Mimikatz output: {}".format(e))
6161

6262
elif settings.args.mimi_cmd:
63-
print data
63+
print_att(data)
6464

6565
log_name = 'Mimikatz-{}-{}.log'.format(self.client_address[0], datetime.now().strftime("%Y-%m-%d_%H:%M:%S"))
6666
with open('logs/' + log_name, 'w') as creds:

0 commit comments

Comments
 (0)