BB: Rename global agent_configuration to test_configuration
This commit is contained in:
parent
0c0ad42a8e
commit
474e9c3c66
|
@ -76,16 +76,16 @@ def _add_http_ports(agent_configuration: AgentConfiguration) -> AgentConfigurati
|
|||
return add_http_ports(agent_configuration, HTTP_PORTS)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_fingerprinters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
agent_configuration = _add_credential_collectors(agent_configuration)
|
||||
agent_configuration = _add_http_ports(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_fingerprinters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
test_configuration = _add_credential_collectors(test_configuration)
|
||||
test_configuration = _add_http_ports(test_configuration)
|
||||
|
||||
depth_1_a_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
CREDENTIALS = (
|
||||
Credentials(Username("m0nk3y"), None),
|
||||
|
|
|
@ -34,13 +34,13 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio
|
|||
return add_tcp_ports(agent_configuration, ports)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 2)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 2)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
|
||||
depth_2_a_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -48,14 +48,14 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio
|
|||
return add_tcp_ports(agent_configuration, ports)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 3)
|
||||
agent_configuration = set_keep_tunnel_open_time(agent_configuration, 20)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 3)
|
||||
test_configuration = set_keep_tunnel_open_time(test_configuration, 20)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
|
||||
depth_3_a_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -30,11 +30,11 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio
|
|||
return add_tcp_ports(agent_configuration, ports)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
|
||||
powershell_credentials_reuse_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
|
|
@ -33,14 +33,14 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio
|
|||
return add_tcp_ports(agent_configuration, ports)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 3)
|
||||
agent_configuration = set_keep_tunnel_open_time(agent_configuration, 20)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 3)
|
||||
test_configuration = set_keep_tunnel_open_time(test_configuration, 20)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
|
||||
smb_pth_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -40,15 +40,15 @@ def _add_tcp_ports(agent_configuration: AgentConfiguration) -> AgentConfiguratio
|
|||
return add_tcp_ports(agent_configuration, ports)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
agent_configuration = _add_credential_collectors(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
agent_configuration = _add_credential_collectors(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
test_configuration = _add_credential_collectors(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
test_configuration = _add_credential_collectors(test_configuration)
|
||||
|
||||
wmi_mimikatz_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -27,11 +27,11 @@ def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
|
|||
return add_subnets(agent_configuration, subnets)
|
||||
|
||||
|
||||
agent_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
agent_configuration = _add_exploiters(agent_configuration)
|
||||
agent_configuration = _add_tcp_ports(agent_configuration)
|
||||
agent_configuration = _add_subnets(agent_configuration)
|
||||
test_configuration = set_maximum_depth(noop_test_configuration.agent_configuration, 1)
|
||||
test_configuration = _add_exploiters(test_configuration)
|
||||
test_configuration = _add_tcp_ports(test_configuration)
|
||||
test_configuration = _add_subnets(test_configuration)
|
||||
|
||||
zerologon_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
noop_test_configuration, test_configuration
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue