From 969f916cf594c2411c42ce512f826b140d88b8b0 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Fri, 17 Jun 2022 15:07:34 +0300 Subject: [PATCH] Common: Add ScanTargetConfiguration dataclass to agent_configuration.py --- monkey/common/configuration/agent_configuration.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monkey/common/configuration/agent_configuration.py b/monkey/common/configuration/agent_configuration.py index e961a82f3..ab00d7ae1 100644 --- a/monkey/common/configuration/agent_configuration.py +++ b/monkey/common/configuration/agent_configuration.py @@ -86,3 +86,11 @@ class ExploitationConfigurationSchema(Schema): @post_load def make_exploitation_options_configuration(self, data, **kwargs): return ExploitationConfiguration(**data) + + +@dataclass(frozen=True) +class ScanTargetConfiguration: + blocked_ips: List[str] + inaccessible_subnets: List[str] + local_network_scan: bool + subnets: List[str]