forked from p15670423/monkey
BB: Add http fingerprnter to depth_1_a tests
This commit is contained in:
parent
bb3bf5ebd4
commit
9ad96cbf14
|
@ -5,6 +5,7 @@ from .noop import noop_test_configuration
|
|||
from .utils import (
|
||||
add_credential_collectors,
|
||||
add_exploiters,
|
||||
add_fingerprinters,
|
||||
add_http_ports,
|
||||
add_subnets,
|
||||
add_tcp_ports,
|
||||
|
@ -34,6 +35,12 @@ def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfigurati
|
|||
return add_exploiters(agent_configuration, brute_force=brute_force, vulnerability=vulnerability)
|
||||
|
||||
|
||||
def _add_fingerprinters(agent_configuration: AgentConfiguration) -> AgentConfiguration:
|
||||
fingerprinters = [PluginConfiguration(name="http", options={})]
|
||||
|
||||
return add_fingerprinters(agent_configuration, fingerprinters)
|
||||
|
||||
|
||||
def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
|
||||
subnets = [
|
||||
"10.2.2.2",
|
||||
|
@ -71,6 +78,7 @@ def _add_http_ports(agent_configuration: AgentConfiguration) -> AgentConfigurati
|
|||
|
||||
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)
|
||||
|
@ -79,8 +87,6 @@ agent_configuration = _add_http_ports(agent_configuration)
|
|||
depth_1_a_test_configuration = replace_agent_configuration(
|
||||
noop_test_configuration, agent_configuration
|
||||
)
|
||||
|
||||
|
||||
CREDENTIALS = (
|
||||
Credentials(Username("m0nk3y"), None),
|
||||
Credentials(None, Password("Ivrrw5zEzs")),
|
||||
|
|
Loading…
Reference in New Issue