forked from p15670423/monkey
Agent: Remove `time=time()` in calls to `_publish_exploitation_event()` in zerologon since that's the default argument anyway
This commit is contained in:
parent
ad47e3be2f
commit
16ed8d6233
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue