forked from p15670423/monkey
Island: Fix exploiters' `supported_os`'s capitalisation in config flattening
This commit is contained in:
parent
ba3af5a9c2
commit
ab23b3c9cb
|
@ -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"]):
|
||||||
|
|
Loading…
Reference in New Issue