From 60207e3a794948d75f4a984b66cf69f44e11b1e4 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 17 Jun 2020 02:09:02 +0530 Subject: [PATCH] Change file locations --- .../linux/shell_startup_files_modification.py | 0 .../shell_startup_files}/shell_startup_files_modification.py | 4 ++-- .../windows/shell_startup_files_modification.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename monkey/infection_monkey/{utils => post_breach/shell_startup_files}/linux/shell_startup_files_modification.py (100%) rename monkey/infection_monkey/{utils => post_breach/shell_startup_files}/shell_startup_files_modification.py (62%) rename monkey/infection_monkey/{utils => post_breach/shell_startup_files}/windows/shell_startup_files_modification.py (98%) 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 -] + ]