script filter
This commit is contained in:
		| @ -66,7 +66,7 @@ if ($preset && isset($presets[$preset])) { | |||||||
|     '--version-trace'     => FILTER_VALIDATE_BOOLEAN, |     '--version-trace'     => FILTER_VALIDATE_BOOLEAN, | ||||||
| // SCRIPT SCAN: | // SCRIPT SCAN: | ||||||
|     '-sC'      => FILTER_VALIDATE_BOOLEAN, |     '-sC'      => FILTER_VALIDATE_BOOLEAN, | ||||||
|     '--script' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => "/^[a-z][a-z0-9\.\/]*$/"]], |     '--script' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => "/^[a-z][a-z0-9,\-\.\/]*$/"]], | ||||||
| // OS DETECTION: | // OS DETECTION: | ||||||
|     '-O'             => FILTER_VALIDATE_BOOLEAN, |     '-O'             => FILTER_VALIDATE_BOOLEAN, | ||||||
|     '--osscan-limit' => FILTER_VALIDATE_BOOLEAN, |     '--osscan-limit' => FILTER_VALIDATE_BOOLEAN, | ||||||
|  | |||||||
| @ -356,7 +356,7 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10. | |||||||
|           <div class="field"> |           <div class="field"> | ||||||
|             <label for="scriptInput">Scripts</label> |             <label for="scriptInput">Scripts</label> | ||||||
|             <input id="scriptInput" type="text" name="--script" placeholder="script" |             <input id="scriptInput" type="text" name="--script" placeholder="script" | ||||||
|               title="<catégories|répertoire|nom|all>" list="scripts" pattern="[a-z][a-z0-9\.\/]*+" |               title="<catégories|répertoire|nom|all>" list="scripts" pattern="[a-z][a-z0-9\-\.\/]*" | ||||||
|               value="<?= htmlentities($options["--script"] ?? "", ENT_QUOTES); ?>"> |               value="<?= htmlentities($options["--script"] ?? "", ENT_QUOTES); ?>"> | ||||||
|           </div> |           </div> | ||||||
|         </div> |         </div> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user