forked from p15670423/monkey
Common: Add port number validation to ExploitationOptionsConfigurationSchema
This commit is contained in:
parent
6307acb11b
commit
20ab2c3eca
|
@ -115,7 +115,7 @@ class NetworkScanConfigurationSchema(Schema):
|
|||
|
||||
|
||||
class ExploitationOptionsConfigurationSchema(Schema):
|
||||
http_ports = fields.List(fields.Int())
|
||||
http_ports = fields.List(fields.Int(validate=validate.Range(min=0, max=65535)))
|
||||
|
||||
@post_load
|
||||
@freeze_lists
|
||||
|
|
Loading…
Reference in New Issue