Fixed missing imports when dumping NTDS via vss

main
byt3bl33d3r 2016-03-30 11:37:34 -06:00
parent 7e6657eedb
commit 9262832b86
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,5 @@
from impacket.structure import Structure
from struct import unpack
# Structures
# Taken from http://insecurety.net/?p=768

View File

@ -7,8 +7,11 @@ from binascii import hexlify, unhexlify
from struct import unpack
from datetime import datetime
from core.credentials.cryptocommon import CryptoCommon
from Crypto.Cipher import DES, ARC4
from core.credentials.commonstructs import SAMR_RPC_SID
from impacket.ese import ESENT_DB
import logging
import hashlib
import random
import string
import os

View File

@ -157,11 +157,7 @@ class DumpSecrets:
def cleanup(self):
logging.info('Cleaning up... ')
if self.__remoteOps:
try:
self.__remoteOps.finish()
except DCERPCException:
sleep(5)
self.__remoteOps.finish()
self.__remoteOps.finish()
if self.__SAMHashes:
self.__SAMHashes.finish()
if self.__LSASecrets: