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