From 0f0edc3439baba1b29ff3d712dba113f2f1fcd58 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 23 Feb 2022 09:08:28 -0500 Subject: [PATCH] Agent: Log error messages at error level in SSHExploiter --- monkey/infection_monkey/exploit/sshexec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/infection_monkey/exploit/sshexec.py b/monkey/infection_monkey/exploit/sshexec.py index a8a585bed..4cbfd1e5c 100644 --- a/monkey/infection_monkey/exploit/sshexec.py +++ b/monkey/infection_monkey/exploit/sshexec.py @@ -125,7 +125,7 @@ class SSHExploiter(HostExploiter): self.exploit_result.exploitation_success = True except FailedExploitationError: self.exploit_result.error_message = "Exploiter SSHExploiter is giving up..." - logger.debug(self.exploit_result.error_message) + logger.error(self.exploit_result.error_message) return self.exploit_result if not self.host.os.get("type"): @@ -146,7 +146,7 @@ class SSHExploiter(HostExploiter): f"Error running uname os command on victim {self.host}: ({exc})" ) - logger.debug(self.exploit_result.error_message) + logger.error(self.exploit_result.error_message) return self.exploit_result if not self.host.os.get("machine"): @@ -168,7 +168,7 @@ class SSHExploiter(HostExploiter): f"Can't find suitable monkey executable for host {self.host}" ) - logger.info(self.exploit_result.error_message) + logger.error(self.exploit_result.error_message) return self.exploit_result try: