Agent: Log error messages at error level in SSHExploiter
This commit is contained in:
parent
e993998432
commit
0f0edc3439
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue