Agent: Log error messages at error level in SSHExploiter

This commit is contained in:
Mike Salvatore 2022-02-23 09:08:28 -05:00
parent e993998432
commit 0f0edc3439
1 changed files with 3 additions and 3 deletions

View File

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