diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index d25ff7ebe..8d33af8fd 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -129,9 +129,6 @@ class Configuration(object): keep_tunnel_open_time = 60 - # Monkey files directory name - monkey_dir_name = "monkey_dir" - ########################### # scanners config ########################### diff --git a/monkey/infection_monkey/example.conf b/monkey/infection_monkey/example.conf index 7576b5095..556bdfcaa 100644 --- a/monkey/infection_monkey/example.conf +++ b/monkey/infection_monkey/example.conf @@ -23,8 +23,6 @@ "dropper_target_path_win_64": "C:\\Windows\\temp\\monkey64.exe", "dropper_target_path_linux": "/tmp/monkey", - "monkey_dir_name": "monkey_dir", - "exploiter_classes": [ "SSHExploiter", "SmbExploiter", diff --git a/monkey/infection_monkey/utils/monkey_dir.py b/monkey/infection_monkey/utils/monkey_dir.py index bb69dae5b..c705c233f 100644 --- a/monkey/infection_monkey/utils/monkey_dir.py +++ b/monkey/infection_monkey/utils/monkey_dir.py @@ -2,7 +2,7 @@ import os import shutil import tempfile -from infection_monkey.config import WormConfiguration +MONKEY_DIR_NAME = "monkey_dir" def create_monkey_dir(): @@ -26,4 +26,4 @@ def remove_monkey_dir(): def get_monkey_dir_path(): - return os.path.join(tempfile.gettempdir(), WormConfiguration.monkey_dir_name) + return os.path.join(tempfile.gettempdir(), MONKEY_DIR_NAME)