#NEWLINE# def NTDS_dump( self , method , pwdLastSet , history ) : #NEWLINE# #INDENT# self . __pwdLastSet = history #NEWLINE# self . __history = history #NEWLINE# try : #NEWLINE# #INDENT# self . enableRemoteRegistry ( ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# traceback . print_exc ( ) #NEWLINE# #UNINDENT# if ( method == 'vss' ) : #NEWLINE# #INDENT# self . __useVSSMethod = True #NEWLINE# #UNINDENT# if self . __useVSSMethod : #NEWLINE# #INDENT# NTDSFileName = self . __remoteOps . saveNTDS ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# NTDSFileName = None #NEWLINE# #UNINDENT# self . __NTDSHashes = NTDSHashes ( NTDSFileName , self . __bootKey , self . __logger , isRemote = True , history = self . __history , noLMHash = self . __noLMHash , remoteOps = self . __remoteOps , useVSSMethod = self . __useVSSMethod , justNTLM = self . __justDCNTLM , pwdLastSet = self . __pwdLastSet , resumeSession = self . __resumeFileName , outputFileName = self . __outputFileName ) #NEWLINE# self . __NTDSHashes . dump ( ) #NEWLINE# self . cleanup ( )