From ab23b3c9cb3024994ee0bb02144fc9e71bbab0f4 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Sun, 19 Jun 2022 23:11:00 -0700 Subject: [PATCH] Island: Fix exploiters' `supported_os`'s capitalisation in config flattening --- monkey/monkey_island/cc/services/config.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/monkey/monkey_island/cc/services/config.py b/monkey/monkey_island/cc/services/config.py index b47c0edd5..684801ac2 100644 --- a/monkey/monkey_island/cc/services/config.py +++ b/monkey/monkey_island/cc/services/config.py @@ -600,14 +600,14 @@ class ConfigService: formatted_config: Dict, ) -> Dict[str, List[Dict[str, Any]]]: supported_os = { - "HadoopExploiter": ["linux", "windows"], - "Log4ShellExploiter": ["linux", "windows"], - "MSSQLExploiter": ["windows"], - "PowerShellExploiter": ["windows"], - "SSHExploiter": ["linux"], - "SmbExploiter": ["windows"], - "WmiExploiter": ["windows"], - "ZerologonExploiter": ["windows"], + "HadoopExploiter": ["LINUX", "WINDOWS"], + "Log4ShellExploiter": ["LINUX", "WINDOWS"], + "MSSQLExploiter": ["WINDOWS"], + "PowerShellExploiter": ["WINDOWS"], + "SSHExploiter": ["LINUX"], + "SmbExploiter": ["WINDOWS"], + "WmiExploiter": ["WINDOWS"], + "ZerologonExploiter": ["WINDOWS"], } new_config = copy.deepcopy(formatted_config) for exploiter in chain(new_config["brute_force"], new_config["vulnerability"]):