Common: Create ExploitationOptionsConfiguration using pydantic

This commit is contained in:
Shreya Malviya 2022-08-29 13:53:01 +05:30
parent 153c3e9b9f
commit b74f90fe9b
1 changed files with 11 additions and 0 deletions

View File

@ -279,6 +279,17 @@ class ExploitationOptionsConfiguration:
http_ports: Tuple[int, ...] http_ports: Tuple[int, ...]
class Pydantic___ExploitationOptionsConfiguration:
"""
A configuration for exploitation options
Attributes:
:param http_ports: HTTP ports to exploit
"""
http_ports: Tuple[conint(ge=0, le=65535), ...]
@dataclass(frozen=True) @dataclass(frozen=True)
class ExploitationConfiguration: class ExploitationConfiguration:
""" """