From 95b3556cd0042eebc396f4dab3ea4c2f635f801f Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 4 Oct 2022 15:34:56 +0200 Subject: [PATCH] Agent: Exploiter name when publishing events to be __class__.__name__ --- monkey/infection_monkey/exploit/HostExploiter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index 94fcbe152..9490b8706 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -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, )