Island: Add HTTP_PORTS to exploiter common options

This commit is contained in:
Ilija Lazoroski 2022-02-23 17:26:25 +01:00 committed by Shreya Malviya
parent 34953f1c88
commit b859b8820f
2 changed files with 3 additions and 0 deletions

View File

@ -611,6 +611,8 @@ class ConfigService:
]:
exploit_options[dropper_target] = config.get(dropper_target, "")
exploit_options["http_ports"] = sorted(config["HTTP_PORTS"])
formatted_exploiters_config = {
"options": exploit_options,
"brute_force": [],

View File

@ -175,6 +175,7 @@ def test_format_config_for_agent__exploiters(flat_monkey_config):
"dropper_target_path_linux": "/tmp/monkey",
"dropper_target_path_win_32": r"C:\Windows\temp\monkey32.exe",
"dropper_target_path_win_64": r"C:\Windows\temp\monkey64.exe",
"http_ports": [80, 443, 7001, 8008, 8080, 9200],
},
"brute_force": [
{"name": "MSSQLExploiter", "options": {}},