diff --git a/monkey/infection_monkey/utils/linux/shell_startup_files_modification.py b/monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py similarity index 100% rename from monkey/infection_monkey/utils/linux/shell_startup_files_modification.py rename to monkey/infection_monkey/post_breach/shell_startup_files/linux/shell_startup_files_modification.py diff --git a/monkey/infection_monkey/utils/shell_startup_files_modification.py b/monkey/infection_monkey/post_breach/shell_startup_files/shell_startup_files_modification.py similarity index 62% rename from monkey/infection_monkey/utils/shell_startup_files_modification.py rename to monkey/infection_monkey/post_breach/shell_startup_files/shell_startup_files_modification.py index c97ca34b7..bc83ec499 100644 --- a/monkey/infection_monkey/utils/shell_startup_files_modification.py +++ b/monkey/infection_monkey/post_breach/shell_startup_files/shell_startup_files_modification.py @@ -1,6 +1,6 @@ -from infection_monkey.utils.linux.shell_startup_files_modification import\ +from infection_monkey.post_breach.shell_startup_files.linux.shell_startup_files_modification import\ get_linux_commands_to_modify_shell_startup_files -from infection_monkey.utils.windows.shell_startup_files_modification import\ +from infection_monkey.post_breach.shell_startup_files.windows.shell_startup_files_modification import\ get_windows_commands_to_modify_shell_startup_files diff --git a/monkey/infection_monkey/utils/windows/shell_startup_files_modification.py b/monkey/infection_monkey/post_breach/shell_startup_files/windows/shell_startup_files_modification.py similarity index 98% rename from monkey/infection_monkey/utils/windows/shell_startup_files_modification.py rename to monkey/infection_monkey/post_breach/shell_startup_files/windows/shell_startup_files_modification.py index 15e44b832..44315df4b 100644 --- a/monkey/infection_monkey/utils/windows/shell_startup_files_modification.py +++ b/monkey/infection_monkey/post_breach/shell_startup_files/windows/shell_startup_files_modification.py @@ -9,4 +9,4 @@ def get_windows_commands_to_modify_shell_startup_files(): 'cat {0} | Select -last 1 ;'.format(SHELL_STARTUP_FILE), # print last line of $profile '$OldProfile = cat {0} | Select -skiplast 1 ;'.format(SHELL_STARTUP_FILE), 'Set-Content {0} -Value $OldProfile ;'.format(SHELL_STARTUP_FILE) # remove last line of $profile -] + ]