Common: Add ScanTargetConfiguration dataclass to agent_configuration.py

This commit is contained in:
vakarisz 2022-06-17 15:07:34 +03:00
parent 4065bc23fb
commit 969f916cf5
1 changed files with 8 additions and 0 deletions

View File

@ -86,3 +86,11 @@ class ExploitationConfigurationSchema(Schema):
@post_load @post_load
def make_exploitation_options_configuration(self, data, **kwargs): def make_exploitation_options_configuration(self, data, **kwargs):
return ExploitationConfiguration(**data) return ExploitationConfiguration(**data)
@dataclass(frozen=True)
class ScanTargetConfiguration:
blocked_ips: List[str]
inaccessible_subnets: List[str]
local_network_scan: bool
subnets: List[str]