BB: Add noop_configuration

This commit is contained in:
Mike Salvatore 2022-07-18 13:36:55 -04:00
parent b3499074b5
commit c42cfe3110
1 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,53 @@
from common.configuration import (
AgentConfiguration,
CustomPBAConfiguration,
ExploitationConfiguration,
ExploitationOptionsConfiguration,
ICMPScanConfiguration,
NetworkScanConfiguration,
PropagationConfiguration,
ScanTargetConfiguration,
TCPScanConfiguration,
)
from . import TestConfiguration
_custom_pba_configuration = CustomPBAConfiguration("", "", "", "")
_tcp_scan_configuration = TCPScanConfiguration(timeout=3.0, ports=[])
_icmp_scan_configuration = ICMPScanConfiguration(timeout=1.0)
_scan_target_configuration = ScanTargetConfiguration(
blocked_ips=[], inaccessible_subnets=[], local_network_scan=False, subnets=[]
)
_network_scan_configuration = NetworkScanConfiguration(
tcp=_tcp_scan_configuration,
icmp=_icmp_scan_configuration,
fingerprinters=[],
targets=_scan_target_configuration,
)
_exploitation_options_configuration = ExploitationOptionsConfiguration(http_ports=[])
_exploitation_configuration = ExploitationConfiguration(
options=_exploitation_options_configuration, brute_force=[], vulnerability=[]
)
_propagation_configuration = PropagationConfiguration(
maximum_depth=0,
network_scan=_network_scan_configuration,
exploitation=_exploitation_configuration,
)
_agent_configuration = AgentConfiguration(
keep_tunnel_open_time=0,
custom_pbas=_custom_pba_configuration,
post_breach_actions=[],
credential_collectors=[],
payloads=[],
propagation=_propagation_configuration,
)
_propagation_credentials = tuple()
# This is an empty, NOOP configuration from which other configurations can be built
noop_test_configuration = TestConfiguration(
agent_configuration=_agent_configuration, propagation_credentials=_propagation_credentials
)