forked from p15670423/monkey
Common: Use NetworkPort in ExploitationOptionsConfiguration
This commit is contained in:
parent
1a01b7c5dc
commit
fa18cb72da
|
@ -157,7 +157,7 @@ class ExploitationOptionsConfiguration(MutableInfectionMonkeyBaseModel):
|
||||||
:param http_ports: HTTP ports to exploit
|
:param http_ports: HTTP ports to exploit
|
||||||
"""
|
"""
|
||||||
|
|
||||||
http_ports: Tuple[conint(ge=0, le=65535), ...]
|
http_ports: Tuple[NetworkPort, ...]
|
||||||
|
|
||||||
|
|
||||||
class ExploitationConfiguration(MutableInfectionMonkeyBaseModel):
|
class ExploitationConfiguration(MutableInfectionMonkeyBaseModel):
|
||||||
|
|
|
@ -179,7 +179,7 @@ def test_network_scan_configuration():
|
||||||
|
|
||||||
|
|
||||||
def test_exploitation_options_configuration_schema():
|
def test_exploitation_options_configuration_schema():
|
||||||
ports = [1, 2, 3]
|
ports = [0, 1, 2, 3]
|
||||||
|
|
||||||
config = ExploitationOptionsConfiguration(http_ports=ports)
|
config = ExploitationOptionsConfiguration(http_ports=ports)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue