forked from p34709852/monkey
Agent: Remove target from publish methods
This commit is contained in:
parent
73a8c14397
commit
95b1d9c62d
|
@ -130,14 +130,13 @@ class HostExploiter:
|
|||
|
||||
def _publish_exploitation_event(
|
||||
self,
|
||||
target: str,
|
||||
exploitation_success: bool,
|
||||
tags: Tuple[str, ...] = tuple(),
|
||||
error_message: str = "",
|
||||
):
|
||||
exploitation_event = ExploitationEvent(
|
||||
source=get_agent_id(),
|
||||
target=IPv4Address(target),
|
||||
target=IPv4Address(self.host.ip_addr),
|
||||
success=exploitation_success,
|
||||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
|
@ -147,14 +146,13 @@ class HostExploiter:
|
|||
|
||||
def _publish_propagation_event(
|
||||
self,
|
||||
target: str,
|
||||
propagation_success: bool,
|
||||
tags: Tuple[str, ...] = tuple(),
|
||||
error_message: str = "",
|
||||
):
|
||||
propagation_event = PropagationEvent(
|
||||
source=get_agent_id(),
|
||||
target=IPv4Address(target),
|
||||
target=IPv4Address(self.host.ip_addr),
|
||||
success=propagation_success,
|
||||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
|
|
Loading…
Reference in New Issue