From 3fe4dd679bc5d829a59c141c91848bcc4e29ad0a Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 15 Jun 2020 17:42:11 +0530 Subject: [PATCH] Pass empty string to linux_cmds if OS is windows --- .../post_breach/actions/modify_shell_startup_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py b/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py index a2d92db6c..a526acad6 100644 --- a/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py +++ b/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py @@ -20,7 +20,7 @@ class ModifyShellStartupFiles(PBA): if is_windows_os(): super(ModifyShellStartupFiles, self).__init__(name=POST_BREACH_SHELL_STARTUP_FILE_MODIFICATION, - linux_cmd=' '.join(linux_cmds), + linux_cmd='', # windows so won't matter windows_cmd=windows_cmds) super(ModifyShellStartupFiles, self).run() else: