From f7c2e903b868b67dbcf758e96c9536856a4a464d Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 31 May 2022 14:00:05 +0200 Subject: [PATCH] Island: Remove dropper target paths from the config --- monkey/monkey_island/cc/services/config.py | 6 ------ .../cc/services/config_schema/internal.py | 21 ------------------- .../monkey_island/cc/services/test_config.py | 2 -- 3 files changed, 29 deletions(-) diff --git a/monkey/monkey_island/cc/services/config.py b/monkey/monkey_island/cc/services/config.py index 1a0d9c4a1..608c21d99 100644 --- a/monkey/monkey_island/cc/services/config.py +++ b/monkey/monkey_island/cc/services/config.py @@ -617,12 +617,6 @@ class ConfigService: exploit_options = {} - for dropper_target in [ - "dropper_target_path_linux", - "dropper_target_path_win_64", - ]: - exploit_options[dropper_target] = config.get(dropper_target, "") - exploit_options["http_ports"] = sorted(config["HTTP_PORTS"]) formatted_exploiters_config = { diff --git a/monkey/monkey_island/cc/services/config_schema/internal.py b/monkey/monkey_island/cc/services/config_schema/internal.py index 1b684b31f..d8be19e06 100644 --- a/monkey/monkey_island/cc/services/config_schema/internal.py +++ b/monkey/monkey_island/cc/services/config_schema/internal.py @@ -140,27 +140,6 @@ INTERNAL = { } }, }, - "dropper": { - "title": "Dropper", - "type": "object", - "properties": { - "dropper_target_path_linux": { - "title": "Dropper target path on Linux", - "type": "string", - "default": "/tmp/monkey", - "description": "Determines where should the dropper place the monkey on a " - "Linux machine", - }, - "dropper_target_path_win_64": { - "title": "Dropper target path on Windows (64bit)", - "type": "string", - "default": "C:\\Windows\\temp\\monkey64.exe", - "description": "Determines where should the dropper place the monkey on a " - "Windows machine " - "(64 bit)", - }, - }, - }, "exploits": { "title": "Exploits", "type": "object", diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py b/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py index 84ea942f4..1a3c52527 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py @@ -179,8 +179,6 @@ def test_format_config_for_agent__network_scan(flat_monkey_config): def test_format_config_for_agent__exploiters(flat_monkey_config): expected_exploiters_config = { "options": { - "dropper_target_path_linux": "/tmp/monkey", - "dropper_target_path_win_64": r"C:\Windows\temp\monkey64.exe", "http_ports": [80, 443, 7001, 8008, 8080, 9200], }, "brute_force": [