Delete lsassy dump after process

Thanks to [Laxa](https://github.com/Laxa) message to me noticing this.
main
Pixis 2021-10-18 15:32:34 +02:00 committed by GitHub
parent 8151e4d506
commit 0776ce5aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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("$")]