#NEWLINE# def SAM_dump( self ) : #NEWLINE# #INDENT# self . enableRemoteRegistry ( ) #NEWLINE# try : #NEWLINE# #INDENT# SAMFileName = self . __remoteOps . saveSAM ( ) #NEWLINE# self . __SAMHashes = SAMHashes ( SAMFileName , self . __bootKey , self . __logger , self . __db , self . __host , self . __hostname , isRemote = True ) #NEWLINE# self . __SAMHashes . dump ( ) #NEWLINE# self . __SAMHashes . export ( self . __outputFileName ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# traceback . print_exc ( ) #NEWLINE# logging . error ( ( 'SAM hashes extraction failed: %s' % str ( e ) ) ) #NEWLINE# #UNINDENT# self . cleanup ( )