diff --git a/README.md b/README.md index 8075fd7..6fdfa9b 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ On peut personnaliser les options prédéfinies pour les scans de réseau ou d'h ```php $presets = [ "default" => [ - '-PS' => 'microsoft-ds', - '-F' => true, - '-T5' => true, - '--stylesheet' => "$BASEDIR/xslt/hostsTable.xsl", + '-PS' => 'microsoft-ds', + '-F' => true, + '-T' => 5, + '--stylesheet' => "$BASEDIR/templates/hostsTable.xsl", 'refreshPeriod' => 60, 'sudo' => false, ], @@ -19,10 +19,11 @@ $presets = [ '-Pn' => true, '-F' => true, '-sV' => true, - '-T5' => true, - '--stylesheet' => "$BASEDIR/xslt/servicesTable.xsl", + '-T' => 5, + '--script' => "http-info,smb-shares-size", + '--stylesheet' => "$BASEDIR/templates/servicesTable.xsl", 'refreshPeriod' => 60, - 'sudo' => false, + 'sudo' => true, ], ]; ``` diff --git a/config.php b/config.php index a4fdb03..ab0bcf5 100644 --- a/config.php +++ b/config.php @@ -10,7 +10,7 @@ $presets = [ "default" => [ '-PS' => 'microsoft-ds', '-F' => true, - '-T5' => true, + '-T' => 5, '--stylesheet' => "$BASEDIR/templates/hostsTable.xsl", 'refreshPeriod' => 60, 'sudo' => false, @@ -19,7 +19,7 @@ $presets = [ '-Pn' => true, '-F' => true, '-sV' => true, - '-T5' => true, + '-T' => 5, '--script' => "http-info,smb-shares-size", '--stylesheet' => "$BASEDIR/templates/servicesTable.xsl", 'refreshPeriod' => 60, diff --git a/filter_inputs.php b/filter_inputs.php index 3d93207..31a2ec0 100644 --- a/filter_inputs.php +++ b/filter_inputs.php @@ -73,12 +73,7 @@ if ($preset && isset($presets[$preset])) { '--osscan-guess' => FILTER_VALIDATE_BOOLEAN, '--max-os-tries' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], // TIMING AND PERFORMANCE: - '-T0' => FILTER_VALIDATE_BOOLEAN, - '-T1' => FILTER_VALIDATE_BOOLEAN, - '-T2' => FILTER_VALIDATE_BOOLEAN, - '-T3' => FILTER_VALIDATE_BOOLEAN, - '-T4' => FILTER_VALIDATE_BOOLEAN, - '-T5' => FILTER_VALIDATE_BOOLEAN, + '-T' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 5]], '--min-hostgroup' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], '--max-hostgroup' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], '--min-parallelism' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], diff --git a/index.php b/index.php index 87da770..2dbb4dc 100755 --- a/index.php +++ b/index.php @@ -319,21 +319,11 @@ Exemples: /24 10. - +
- - + + " title="2: léger, 9: tous, défaut: 7">
@@ -385,12 +375,27 @@ Exemples: /24 10.
- + ">
+
Temporisation et performances
+
+
+ + +
+
+
Divers