Skip to content

Commit ad3f0fb

Browse files
BB: Add SNMP configuration to depth_1_a grouped tests
Issue: #3234 PR: #3330
1 parent 052016d commit ad3f0fb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

envs/monkey_zoo/blackbox/gcp_test_machine_list.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"log4j-solr-50",
3030
"log4j-tomcat-51",
3131
"log4j-tomcat-52",
32+
"snmp-20",
3233
],
3334
}
3435

@@ -53,6 +54,7 @@
5354
"log4j-solr-50",
5455
"log4j-tomcat-51",
5556
"log4j-tomcat-52",
57+
"snmp-20",
5658
],
5759
}
5860

envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# Log4shell (10.2.3.55, 10.2.3.56, 10.2.3.49, 10.2.3.50, 10.2.3.51, 10.2.3.52)
2323
# MSSQL (10.2.2.16)
2424
# SMB mimikatz password stealing and brute force (10.2.2.14 and 10.2.2.15)
25+
# SNMP (10.2.3.20)
2526

2627

2728
def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfiguration:
@@ -35,6 +36,11 @@ def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfigurati
3536
"Log4ShellExploiter": {},
3637
"MSSQLExploiter": {},
3738
"SMB": {"agent_binary_upload_timeout": 30, "smb_connect_timeout": 15},
39+
"SNMP": {
40+
"agent_binary_download_timeout": 60,
41+
"snmp_request_timeout": 0.5,
42+
"snmp_retries": 3,
43+
},
3844
}
3945

4046
return add_exploiters(agent_configuration, exploiters=exploiters)
@@ -59,6 +65,7 @@ def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
5965
"10.2.2.16",
6066
"10.2.2.14",
6167
"10.2.2.15",
68+
"10.2.3.20",
6269
]
6370
return add_subnets(agent_configuration, subnets)
6471

@@ -92,6 +99,7 @@ def _add_http_ports(agent_configuration: AgentConfiguration) -> AgentConfigurati
9299

93100
CREDENTIALS = (
94101
Credentials(identity=Username(username="m0nk3y"), secret=None),
102+
Credentials(identity=Username(username="c0mmun1ty"), secret=None),
95103
Credentials(identity=None, secret=Password(password="Ivrrw5zEzs")),
96104
Credentials(identity=None, secret=Password(password="Xk8VDTsC")),
97105
)

0 commit comments

Comments
 (0)