Agent: Remove `time=time()` in calls to `_publish_exploitation_event()` in zerologon since that's the default argument anyway

This commit is contained in:
Shreya Malviya 2022-10-06 16:43:05 +05:30 committed by Ilija Lazoroski
parent ad47e3be2f
commit 16ed8d6233
1 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,6 @@ import os
import re
import tempfile
from binascii import unhexlify
from time import time
from typing import Dict, List, Optional, Sequence, Tuple
import impacket
@ -148,7 +147,6 @@ class ZerologonExploiter(HostExploiter):
logger.info(error_message)
self._publish_exploitation_event(
time=time(),
success=False,
error_message=error_message,
)
@ -181,7 +179,7 @@ class ZerologonExploiter(HostExploiter):
_exploited = True
logger.info("Exploit complete!")
self._publish_exploitation_event(time=time(), success=True)
self._publish_exploitation_event(success=True)
else:
self.report_login_attempt(result=False, user=self.dc_name)
_exploited = False
@ -190,7 +188,6 @@ class ZerologonExploiter(HostExploiter):
logger.info(error_message)
self._publish_exploitation_event(
time=time(),
success=False,
error_message=error_message,
)