Agent: Remove target from publish methods

This commit is contained in:
Kekoa Kaaikala 2022-10-05 15:57:15 +00:00
parent 73a8c14397
commit 95b1d9c62d
1 changed files with 2 additions and 4 deletions

View File

@ -130,14 +130,13 @@ class HostExploiter:
def _publish_exploitation_event( def _publish_exploitation_event(
self, self,
target: str,
exploitation_success: bool, exploitation_success: bool,
tags: Tuple[str, ...] = tuple(), tags: Tuple[str, ...] = tuple(),
error_message: str = "", error_message: str = "",
): ):
exploitation_event = ExploitationEvent( exploitation_event = ExploitationEvent(
source=get_agent_id(), source=get_agent_id(),
target=IPv4Address(target), target=IPv4Address(self.host.ip_addr),
success=exploitation_success, success=exploitation_success,
exploiter_name=self.__class__.__name__, exploiter_name=self.__class__.__name__,
error_message=error_message, error_message=error_message,
@ -147,14 +146,13 @@ class HostExploiter:
def _publish_propagation_event( def _publish_propagation_event(
self, self,
target: str,
propagation_success: bool, propagation_success: bool,
tags: Tuple[str, ...] = tuple(), tags: Tuple[str, ...] = tuple(),
error_message: str = "", error_message: str = "",
): ):
propagation_event = PropagationEvent( propagation_event = PropagationEvent(
source=get_agent_id(), source=get_agent_id(),
target=IPv4Address(target), target=IPv4Address(self.host.ip_addr),
success=propagation_success, success=propagation_success,
exploiter_name=self.__class__.__name__, exploiter_name=self.__class__.__name__,
error_message=error_message, error_message=error_message,