Skip to content

Commit 8fe1d96

Browse files
ilija-lazoroskimssalvatore
authored andcommitted
BB: Add SNMP configuration to depth_1_a grouped tests
Issue: #3234 PR: #3330
1 parent 052016d commit 8fe1d96

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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

+7
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,10 @@ 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+
"snmp_request_timeout": 0.5,
41+
"snmp_retries": 1,
42+
},
3843
}
3944

4045
return add_exploiters(agent_configuration, exploiters=exploiters)
@@ -59,6 +64,7 @@ def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
5964
"10.2.2.16",
6065
"10.2.2.14",
6166
"10.2.2.15",
67+
"10.2.3.20",
6268
]
6369
return add_subnets(agent_configuration, subnets)
6470

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

9399
CREDENTIALS = (
94100
Credentials(identity=Username(username="m0nk3y"), secret=None),
101+
Credentials(identity=Username(username="c0mmun1ty"), secret=None),
95102
Credentials(identity=None, secret=Password(password="Ivrrw5zEzs")),
96103
Credentials(identity=None, secret=Password(password="Xk8VDTsC")),
97104
)

0 commit comments

Comments
 (0)