Fix configure actions that were accidentally combined
This commit is contained in:
@@ -50,7 +50,7 @@ agents:
|
||||
node_name: client_1
|
||||
server_password: correct_password
|
||||
6:
|
||||
action: c2_server_ransomware_configure
|
||||
action: configure_ransomware_script
|
||||
options:
|
||||
node_name: client_2
|
||||
server_ip_address: 10.0.0.5
|
||||
|
||||
@@ -30,7 +30,6 @@ agents:
|
||||
options:
|
||||
source_node: client_1
|
||||
target_ip_address: 192.168.10.0/24
|
||||
target_protocol: tcp
|
||||
target_port:
|
||||
- 21
|
||||
- 53
|
||||
|
||||
@@ -122,7 +122,7 @@ class TestConfigureRansomwareScriptAction:
|
||||
old_payload = ransomware_script.payload
|
||||
|
||||
action = (
|
||||
"c2_server_ransomware_configure",
|
||||
"configure_ransomware_script",
|
||||
{"node_name": "client_1", **config},
|
||||
)
|
||||
agent.store_action(action)
|
||||
@@ -145,7 +145,7 @@ class TestConfigureRansomwareScriptAction:
|
||||
client_1.software_manager.install(RansomwareScript)
|
||||
ransomware_script: RansomwareScript = client_1.software_manager.software["RansomwareScript"]
|
||||
action = (
|
||||
"c2_server_ransomware_configure",
|
||||
"configure_ransomware_script",
|
||||
{
|
||||
"node_name": "client_1",
|
||||
"config": {"server_password": "admin123", "bad_option": 70},
|
||||
|
||||
Reference in New Issue
Block a user