mirror of
https://github.com/login-securite/DonPAPI
synced 2025-02-06 22:53:05 +00:00
Fix registry stacktrace
This commit is contained in:
parent
158c263d31
commit
be27cbaeba
@ -297,7 +297,7 @@ class RemoteFile:
|
|||||||
def __init__(self, smbConnection, fileName):
|
def __init__(self, smbConnection, fileName):
|
||||||
self.__smbConnection = smbConnection
|
self.__smbConnection = smbConnection
|
||||||
self.__fileName = fileName
|
self.__fileName = fileName
|
||||||
self.__tid = self.__smbConnection.connectTree('ADMIN$')
|
self.__tid = self.__smbConnection.connectTree('C$')
|
||||||
self.__fid = None
|
self.__fid = None
|
||||||
self.__currentOffset = 0
|
self.__currentOffset = 0
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ class RemoteFile:
|
|||||||
def close(self):
|
def close(self):
|
||||||
if self.__fid is not None:
|
if self.__fid is not None:
|
||||||
self.__smbConnection.closeFile(self.__tid, self.__fid)
|
self.__smbConnection.closeFile(self.__tid, self.__fid)
|
||||||
self.__smbConnection.deleteFile('ADMIN$', self.__fileName)
|
self.__smbConnection.deleteFile('C$$', self.__fileName)
|
||||||
self.__fid = None
|
self.__fid = None
|
||||||
|
|
||||||
def tell(self):
|
def tell(self):
|
||||||
|
@ -2052,6 +2052,7 @@ class MySeatBelt:
|
|||||||
self.__LSASecrets.dumpCachedHashes()
|
self.__LSASecrets.dumpCachedHashes()
|
||||||
self.logging.debug("dump cached hashes")
|
self.logging.debug("dump cached hashes")
|
||||||
self.__LSASecrets.dumpSecrets()
|
self.__LSASecrets.dumpSecrets()
|
||||||
|
self.__LSASecrets.finish()
|
||||||
|
|
||||||
filedest = os.path.join(os.path.join(self.options.output_directory, self.options.target_ip), 'LSA')
|
filedest = os.path.join(os.path.join(self.options.output_directory, self.options.target_ip), 'LSA')
|
||||||
Path(os.path.split(filedest.replace('\\', '/'))[0]).mkdir(parents=True, exist_ok=True)
|
Path(os.path.split(filedest.replace('\\', '/'))[0]).mkdir(parents=True, exist_ok=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user