Common: Create ExploitationConfiguration using pydantic

This commit is contained in:
Shreya Malviya 2022-08-29 13:54:32 +05:30
parent b74f90fe9b
commit 602604e408
1 changed files with 15 additions and 0 deletions

View File

@ -306,6 +306,21 @@ class ExploitationConfiguration:
vulnerability: Tuple[PluginConfiguration, ...]
class Pydantic___ExploitationConfiguration:
"""
A configuration for exploitation
Attributes:
:param options: Exploitation options shared by all exploiters
:param brute_force: Configuration for brute force exploiters
:param vulnerability: Configuration for vulnerability exploiters
"""
options: Pydantic___ExploitationOptionsConfiguration
brute_force: Tuple[Pydantic___PluginConfiguration, ...]
vulnerability: Tuple[Pydantic___PluginConfiguration, ...]
@dataclass(frozen=True)
class PropagationConfiguration:
"""