Agent: Change send_exploit_telemetry for host exploiter

This commit is contained in:
Ilija Lazoroski 2021-11-26 13:32:41 +01:00
parent fb007e9cc8
commit 3c13324e8a
1 changed files with 8 additions and 2 deletions

View File

@ -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(