diff --git a/monkey/common/agent_configuration/agent_configuration.py b/monkey/common/agent_configuration/agent_configuration.py index e3e6caccf..00b39dce4 100644 --- a/monkey/common/agent_configuration/agent_configuration.py +++ b/monkey/common/agent_configuration/agent_configuration.py @@ -34,9 +34,9 @@ class InvalidConfigurationError(Exception): class AgentConfiguration: keep_tunnel_open_time: float custom_pbas: CustomPBAConfiguration - post_breach_actions: Tuple[PluginConfiguration] - credential_collectors: Tuple[PluginConfiguration] - payloads: Tuple[PluginConfiguration] + post_breach_actions: Tuple[PluginConfiguration, ...] + credential_collectors: Tuple[PluginConfiguration, ...] + payloads: Tuple[PluginConfiguration, ...] propagation: PropagationConfiguration def __post_init__(self): diff --git a/monkey/common/agent_configuration/agent_sub_configurations.py b/monkey/common/agent_configuration/agent_sub_configurations.py index 7a3b88898..ad321b3d0 100644 --- a/monkey/common/agent_configuration/agent_sub_configurations.py +++ b/monkey/common/agent_configuration/agent_sub_configurations.py @@ -18,10 +18,10 @@ class PluginConfiguration: @dataclass(frozen=True) class ScanTargetConfiguration: - blocked_ips: Tuple[str] - inaccessible_subnets: Tuple[str] + blocked_ips: Tuple[str, ...] + inaccessible_subnets: Tuple[str, ...] local_network_scan: bool - subnets: Tuple[str] + subnets: Tuple[str, ...] @dataclass(frozen=True) @@ -32,27 +32,27 @@ class ICMPScanConfiguration: @dataclass(frozen=True) class TCPScanConfiguration: timeout: float - ports: Tuple[int] + ports: Tuple[int, ...] @dataclass(frozen=True) class NetworkScanConfiguration: tcp: TCPScanConfiguration icmp: ICMPScanConfiguration - fingerprinters: Tuple[PluginConfiguration] + fingerprinters: Tuple[PluginConfiguration, ...] targets: ScanTargetConfiguration @dataclass(frozen=True) class ExploitationOptionsConfiguration: - http_ports: Tuple[int] + http_ports: Tuple[int, ...] @dataclass(frozen=True) class ExploitationConfiguration: options: ExploitationOptionsConfiguration - brute_force: Tuple[PluginConfiguration] - vulnerability: Tuple[PluginConfiguration] + brute_force: Tuple[PluginConfiguration, ...] + vulnerability: Tuple[PluginConfiguration, ...] @dataclass(frozen=True)