From 0776ce5aeeae94756a5d0286355ca5e713adb9ae Mon Sep 17 00:00:00 2001 From: Pixis Date: Mon, 18 Oct 2021 15:32:34 +0200 Subject: [PATCH] Delete lsassy dump after process Thanks to [Laxa](https://github.com/Laxa) message to me noticing this. --- cme/modules/lsassy_dump.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cme/modules/lsassy_dump.py b/cme/modules/lsassy_dump.py index 451e4c23..5de7ef97 100644 --- a/cme/modules/lsassy_dump.py +++ b/cme/modules/lsassy_dump.py @@ -9,6 +9,7 @@ from lsassy import logger from lsassy.dumper import Dumper from lsassy.parser import Parser from lsassy.session import Session +from lsassy.impacketfile import ImpacketFile class CMEModule: @@ -62,6 +63,7 @@ class CMEModule: credentials, tickets = Parser(file).parse() file.close() + ImpacketFile.delete(session, file.get_file_path()) if credentials is None: credentials = [] credentials = [cred.get_object() for cred in credentials if not cred.get_username().endswith("$")]