Island: Fix exploiters' `supported_os`'s capitalisation in config flattening

This commit is contained in:
Shreya Malviya 2022-06-19 23:11:00 -07:00
parent ba3af5a9c2
commit ab23b3c9cb
1 changed files with 8 additions and 8 deletions

View File

@ -600,14 +600,14 @@ class ConfigService:
formatted_config: Dict, formatted_config: Dict,
) -> Dict[str, List[Dict[str, Any]]]: ) -> Dict[str, List[Dict[str, Any]]]:
supported_os = { supported_os = {
"HadoopExploiter": ["linux", "windows"], "HadoopExploiter": ["LINUX", "WINDOWS"],
"Log4ShellExploiter": ["linux", "windows"], "Log4ShellExploiter": ["LINUX", "WINDOWS"],
"MSSQLExploiter": ["windows"], "MSSQLExploiter": ["WINDOWS"],
"PowerShellExploiter": ["windows"], "PowerShellExploiter": ["WINDOWS"],
"SSHExploiter": ["linux"], "SSHExploiter": ["LINUX"],
"SmbExploiter": ["windows"], "SmbExploiter": ["WINDOWS"],
"WmiExploiter": ["windows"], "WmiExploiter": ["WINDOWS"],
"ZerologonExploiter": ["windows"], "ZerologonExploiter": ["WINDOWS"],
} }
new_config = copy.deepcopy(formatted_config) new_config = copy.deepcopy(formatted_config)
for exploiter in chain(new_config["brute_force"], new_config["vulnerability"]): for exploiter in chain(new_config["brute_force"], new_config["vulnerability"]):