From 867a3a83e7e770b14b8899e2121b405924d58835 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 9 Sep 2022 13:03:16 +0200 Subject: [PATCH] Agent: Use get_plaintext in SSHExploiter login with password --- 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 3ff128203..7de9b26ce 100644 --- a/monkey/infection_monkey/exploit/sshexec.py +++ b/monkey/infection_monkey/exploit/sshexec.py @@ -119,7 +119,7 @@ class SSHExploiter(HostExploiter): ssh.connect( self.host.ip_addr, username=user, - password=current_password, + password=get_plaintext(current_password), port=port, timeout=SSH_CONNECT_TIMEOUT, auth_timeout=SSH_AUTH_TIMEOUT,