From ae1ccfaf9a4ecdec4bd0825ed7b9c625d909c6c0 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 18 Apr 2019 08:57:48 +0300 Subject: [PATCH] Reverted ssh exception handling. --- monkey/infection_monkey/exploit/sshexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/exploit/sshexec.py b/monkey/infection_monkey/exploit/sshexec.py index 395b3e448..8a58f18c6 100644 --- a/monkey/infection_monkey/exploit/sshexec.py +++ b/monkey/infection_monkey/exploit/sshexec.py @@ -84,7 +84,7 @@ class SSHExploiter(HostExploiter): self.report_login_attempt(True, user, curpass) break - except paramiko.AuthenticationException as exc: + except Exception as exc: LOG.debug("Error logging into victim %r with user" " %s and password '%s': (%s)", self.host, user, curpass, exc)