Skip to content

Commit

Permalink
BB: Add SNMP configuration to depth_1_a grouped tests
Browse files Browse the repository at this point in the history
Issue: #3234
PR: #3330
  • Loading branch information
ilija-lazoroski committed May 15, 2023
1 parent 052016d commit b83fe48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions envs/monkey_zoo/blackbox/gcp_test_machine_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"log4j-solr-50",
"log4j-tomcat-51",
"log4j-tomcat-52",
"snmp-20",
],
}

Expand All @@ -53,6 +54,7 @@
"log4j-solr-50",
"log4j-tomcat-51",
"log4j-tomcat-52",
"snmp-20",
],
}

Expand Down
8 changes: 8 additions & 0 deletions envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# 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)
# MSSQL (10.2.2.16)
# SMB mimikatz password stealing and brute force (10.2.2.14 and 10.2.2.15)
# SNMP (10.2.3.20)


def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfiguration:
Expand All @@ -35,6 +36,11 @@ def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfigurati
"Log4ShellExploiter": {},
"MSSQLExploiter": {},
"SMB": {"agent_binary_upload_timeout": 30, "smb_connect_timeout": 15},
"SNMP": {
"agent_binary_download_timeout": 60,
"snmp_request_timeout": 0.5,
"snmp_retries": 1,
},
}

return add_exploiters(agent_configuration, exploiters=exploiters)
Expand All @@ -59,6 +65,7 @@ def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
"10.2.2.16",
"10.2.2.14",
"10.2.2.15",
"10.2.3.20",
]
return add_subnets(agent_configuration, subnets)

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

CREDENTIALS = (
Credentials(identity=Username(username="m0nk3y"), secret=None),
Credentials(identity=Username(username="c0mmun1ty"), secret=None),
Credentials(identity=None, secret=Password(password="Ivrrw5zEzs")),
Credentials(identity=None, secret=Password(password="Xk8VDTsC")),
)
Expand Down

0 comments on commit b83fe48

Please sign in to comment.