fix: update regex for reverse scan ports to enforce valid port ranges

This commit is contained in:
Théophile Diot 2024-11-18 17:45:18 +01:00
parent 0a29cff031
commit 80250fdd13
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -20,7 +20,7 @@
"help": "List of port to scan when using reverse scan feature.",
"id": "reverse-scan-ports",
"label": "Reverse scan ports",
"regex": "^.*$",
"regex": "^( *((\\b((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}))\\b)(?!.*\\b\\3\\b( |$))) *)+$",
"type": "text"
},
"REVERSE_SCAN_TIMEOUT": {