From 3c13324e8a0394f90dec40dee2a1da03987a0411 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 26 Nov 2021 13:32:41 +0100 Subject: [PATCH] Agent: Change send_exploit_telemetry for host exploiter --- monkey/infection_monkey/exploit/HostExploiter.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index 3a5abf4c5..34fd674ff 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -66,10 +66,16 @@ class HostExploiter(Plugin): def is_os_supported(self): return self.host.os.get("type") in self._TARGET_OS_TYPE - def send_exploit_telemetry(self, result): + def send_exploit_telemetry(self, name: str, result: bool): from infection_monkey.telemetry.exploit_telem import ExploitTelem - ExploitTelem(self, result).send() + ExploitTelem( + name=name, + host=self.host, + result=result, + info=self.exploit_info, + attempts=self.exploit_attempts, + ).send() def report_login_attempt(self, result, user, password="", lm_hash="", ntlm_hash="", ssh_key=""): self.exploit_attempts.append(