Island: Add HTTP_PORTS to exploiter common options
This commit is contained in:
parent
34953f1c88
commit
b859b8820f
|
@ -611,6 +611,8 @@ class ConfigService:
|
||||||
]:
|
]:
|
||||||
exploit_options[dropper_target] = config.get(dropper_target, "")
|
exploit_options[dropper_target] = config.get(dropper_target, "")
|
||||||
|
|
||||||
|
exploit_options["http_ports"] = sorted(config["HTTP_PORTS"])
|
||||||
|
|
||||||
formatted_exploiters_config = {
|
formatted_exploiters_config = {
|
||||||
"options": exploit_options,
|
"options": exploit_options,
|
||||||
"brute_force": [],
|
"brute_force": [],
|
||||||
|
|
|
@ -175,6 +175,7 @@ def test_format_config_for_agent__exploiters(flat_monkey_config):
|
||||||
"dropper_target_path_linux": "/tmp/monkey",
|
"dropper_target_path_linux": "/tmp/monkey",
|
||||||
"dropper_target_path_win_32": r"C:\Windows\temp\monkey32.exe",
|
"dropper_target_path_win_32": r"C:\Windows\temp\monkey32.exe",
|
||||||
"dropper_target_path_win_64": r"C:\Windows\temp\monkey64.exe",
|
"dropper_target_path_win_64": r"C:\Windows\temp\monkey64.exe",
|
||||||
|
"http_ports": [80, 443, 7001, 8008, 8080, 9200],
|
||||||
},
|
},
|
||||||
"brute_force": [
|
"brute_force": [
|
||||||
{"name": "MSSQLExploiter", "options": {}},
|
{"name": "MSSQLExploiter", "options": {}},
|
||||||
|
|
Loading…
Reference in New Issue