From 54116d27d0b69e01b609afdce2c53bb5c037121f Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 18 Oct 2024 02:04:55 +0200 Subject: [PATCH] scripts --- filter_inputs.php | 5 ++- options.php | 81 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 71 insertions(+), 15 deletions(-) diff --git a/filter_inputs.php b/filter_inputs.php index 98f60a2..68e528c 100644 --- a/filter_inputs.php +++ b/filter_inputs.php @@ -64,7 +64,10 @@ if ($preset && isset($presets[$preset])) { '--version-intensity' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 9]], '--version-all' => FILTER_VALIDATE_BOOLEAN, '--version-trace' => FILTER_VALIDATE_BOOLEAN, -// SERVICE/VERSION DETECTION: +// SCRIPT SCAN: + '-sC' => FILTER_VALIDATE_BOOLEAN, + '--script' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => "/^[a-z][a-z0-9\.\/]*$/"]], +// OS DETECTION: '-O' => FILTER_VALIDATE_BOOLEAN, '--osscan-limit' => FILTER_VALIDATE_BOOLEAN, '--osscan-guess' => FILTER_VALIDATE_BOOLEAN, diff --git a/options.php b/options.php index ed1c970..f0909ef 100755 --- a/options.php +++ b/options.php @@ -325,14 +325,14 @@ Exemples: /24 10. @@ -344,6 +344,23 @@ Exemples: /24 10. +
Scripts
+
+
+
+ /> + +
+
+ +
+ + "> +
+
+
Détection du système d'exploitation
@@ -453,8 +470,9 @@ foreach (scandir($SCANSDIR) as $filename) { + - [$portid, $protocol]) { - echo " \n"; + echo " \n"; } - ?> +?> + @@ -476,15 +495,48 @@ foreach ($services as $name => [$portid, $protocol]) { + + + + + + + + + + + + + + + + + + + +\n"; + } +} +foreach (scandir("$DATADIR/scripts") as $filename) { + if (substr($filename, -4) === '.nse') { + $name = substr($filename, 0, -4); + echo " \n"; + } +} +?> +