forked from p34709852/monkey
Common: Create ExploitationOptionsConfiguration using pydantic
This commit is contained in:
parent
153c3e9b9f
commit
b74f90fe9b
|
@ -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:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue