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,
) -> 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"]):