Common: Create NetworkScanConfiguration using pydantic

This commit is contained in:
Shreya Malviya 2022-08-29 13:52:08 +05:30
parent 63a8e81c74
commit 153c3e9b9f
1 changed files with 17 additions and 0 deletions

View File

@ -250,6 +250,23 @@ class NetworkScanConfiguration:
targets: ScanTargetConfiguration
class Pydantic___NetworkScanConfiguration(MutableInfectionMonkeyBaseModel):
"""
A configuration for network scanning
Attributes:
:param tcp: Configuration for TCP scanning
:param icmp: Configuration for ICMP scanning
:param fingerprinters: Configuration for fingerprinters to run
:param targets: Configuration for targets to scan
"""
tcp: Pydantic___TCPScanConfiguration
icmp: Pydantic___ICMPScanConfiguration
fingerprinters: Tuple[Pydantic___PluginConfiguration, ...]
targets: Pydantic___ScanTargetConfiguration
@dataclass(frozen=True)
class ExploitationOptionsConfiguration:
"""