From e5f92d29b55e09b6cf12fd30d2c6322fc2fbe8bb Mon Sep 17 00:00:00 2001 From: Shreya Date: Sat, 20 Jun 2020 16:47:08 +0530 Subject: [PATCH] Add startup files for fish, zsh, dash, ksh, sh, csh, tcsh --- .../linux/shell_startup_files_modification.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py b/monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py index 8c54b9168..745caf6c8 100644 --- a/monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py +++ b/monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py @@ -1,4 +1,12 @@ -BASH_STARTUP_FILES = ["~/.bashrc", "~/.profile", "~/.bash_profile"] +STARTUP_FILES = [ + "~/.profile", # bash, dash, ksh, sh + "~/.bashrc", "~/.bash_profile", # bash + "~/.config/fish/config.fish", # fish + "~/.zshrc", "~/.zshenv", "~/.zprofile", # zsh + "~/.kshrc", # ksh + "~/.tcshrc", # tcsh + "~/.cshrc", # csh + ] def get_linux_commands_to_modify_shell_startup_files(): @@ -10,4 +18,4 @@ def get_linux_commands_to_modify_shell_startup_files(): '&&', 'sed -i \'$d\' {0}', # remove last line of file ],\ - BASH_STARTUP_FILES + STARTUP_FILES