Agent: Exploiter name when publishing events to be __class__.__name__

This commit is contained in:
Ilija Lazoroski 2022-10-04 15:34:56 +02:00 committed by Kekoa Kaaikala
parent a79d40b42e
commit 95b3556cd0
1 changed files with 2 additions and 4 deletions

View File

@ -132,7 +132,6 @@ class HostExploiter:
self,
target: str,
propagation_success: bool,
exploiter_name: str = "",
tags: frozenset = frozenset(),
error_message: str = "",
):
@ -140,7 +139,7 @@ class HostExploiter:
source=get_agent_id(),
target=IPv4Address(target),
success=propagation_success,
exploiter_name=exploiter_name or self.__class__.__name__,
exploiter_name=self.__class__.__name__,
error_message=error_message,
tags=tags,
)
@ -150,7 +149,6 @@ class HostExploiter:
self,
target: str,
exploitation_success: bool,
exploiter_name: str = "",
tags: frozenset = frozenset(),
error_message: str = "",
):
@ -158,7 +156,7 @@ class HostExploiter:
source=get_agent_id(),
target=IPv4Address(target),
success=exploitation_success,
exploiter_name=exploiter_name or self.__class__.__name__,
exploiter_name=self.__class__.__name__,
error_message=error_message,
tags=tags,
)