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

Commit 9262832

Browse files
author
byt3bl33d3r
committed
Fixed missing imports when dumping NTDS via vss
1 parent 7e6657e commit 9262832

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/credentials/commonstructs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from impacket.structure import Structure
2+
from struct import unpack
23

34
# Structures
45
# Taken from http://insecurety.net/?p=768

core/credentials/ntds.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
from struct import unpack
88
from datetime import datetime
99
from core.credentials.cryptocommon import CryptoCommon
10+
from Crypto.Cipher import DES, ARC4
11+
from core.credentials.commonstructs import SAMR_RPC_SID
1012
from impacket.ese import ESENT_DB
1113
import logging
14+
import hashlib
1215
import random
1316
import string
1417
import os

core/credentials/secretsdump.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,7 @@ def NTDS_dump(self, method, pwdLastSet, history):
157157
def cleanup(self):
158158
logging.info('Cleaning up... ')
159159
if self.__remoteOps:
160-
try:
161-
self.__remoteOps.finish()
162-
except DCERPCException:
163-
sleep(5)
164-
self.__remoteOps.finish()
160+
self.__remoteOps.finish()
165161
if self.__SAMHashes:
166162
self.__SAMHashes.finish()
167163
if self.__LSASecrets:

0 commit comments

Comments
 (0)