Fix action config schemas and formrequest method for dos bot action

This commit is contained in:
Marek Wolan
2025-01-20 08:35:11 +00:00
parent 858406c4a3
commit 4481d073e4
4 changed files with 8 additions and 7 deletions

View File

@@ -121,7 +121,8 @@ def test_c2_server_ransomware(game_and_agent_fixture: Tuple[PrimaiteGame, ProxyA
"c2_server_ransomware_configure",
{
"node_name": "client_1",
"config": {"server_ip_address": "10.0.2.3", "payload": "ENCRYPT"},
"server_ip_address": "10.0.2.3",
"payload": "ENCRYPT",
},
)
agent.store_action(action)

View File

@@ -424,7 +424,7 @@ def test_network_router_port_disable_integration(game_and_agent: Tuple[PrimaiteG
"network_port_disable",
{
"target_nodename": "router", # router
"port_id": 1, # port 1
"port_num": 2, # port 1
},
)
agent.store_action(action)
@@ -456,7 +456,7 @@ def test_network_router_port_enable_integration(game_and_agent: Tuple[PrimaiteGa
"network_port_enable",
{
"target_nodename": "router", # router
"port_id": 1, # port 1
"port_num": 2, # port 1
},
)
agent.store_action(action)