From 009b2b3c2fdd498d63a6950984f746be8cda00c7 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 11 Feb 2025 18:02:40 +0100 Subject: [PATCH] finished firewall options --- options.php | 1279 ++++++++++++++++++----------------- scan.php | 4 +- stylesheets/hostDetails.xsl | 742 ++++++++++---------- stylesheets/lanTable.xsl | 6 +- 4 files changed, 1015 insertions(+), 1016 deletions(-) diff --git a/options.php b/options.php index 1a323a6..01271d3 100755 --- a/options.php +++ b/options.php @@ -3,753 +3,778 @@ - - - lanScan - - - - - - - - - + + + lanScan + + + + + + + + + - - -
+
-

Scanner un réseau

+

Scanner un réseau

-
-
-
+
+ + +
- - - - $name\n"; +
+ +
+ +
+
+ + + +
+ + + + + $name\n"; + } + } + } + ?> + + + + \n"; + if (file_exists("$dir/nmap-services")) { + $nmap_services = file("$dir/nmap-services"); + foreach ($nmap_services as $service) { + if (0 !== strpos($service, '#')) { + [$name, $port] = explode("\t", $service); + $services[$name] = explode("/", $port); } } } - ?> - + } + foreach ($services as $name => [$portid, $protocol]) { + echo " \n"; + } + ?> + - - \n"; - if (file_exists("$dir/nmap-services")) { - $nmap_services = file("$dir/nmap-services"); - foreach ($nmap_services as $service) { - if (0 !== strpos($service, '#')) { - [$name, $port] = explode("\t", $service); - $services[$name] = explode("/", $port); - } - } + + + + + + + + + + + + + + + + + + + + + + + + + + + \n"; } } - foreach ($services as $name => [$portid, $protocol]) { - echo " \n"; + } + ?> + + + + - - + } + + \ No newline at end of file diff --git a/scan.php b/scan.php index f115a58..b3e883a 100644 --- a/scan.php +++ b/scan.php @@ -97,7 +97,7 @@ if ($preset && isset($PRESETS[$preset])) { '-g' => FILTER_VALIDATE_INT, '--source-port' => FILTER_VALIDATE_INT, '--data-length' => FILTER_VALIDATE_INT, - '--ip-options' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^\"(R|T|U|L [\da-zA-Z-.: ]+|S [\da-zA-Z-.: ]+|\\\\x[\da-fA-F]{1,2}(\*[\d]+)?|\\\\[0-2]?[\d]{1,2}(\*[\d]+)?)\"$/']], + '--ip-options' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => '/^(R|T|U|L [\da-zA-Z-.: ]+|S [\da-zA-Z-.: ]+|\\\\x[\da-fA-F]{1,2}(\*[\d]+)?|\\\\[0-2]?[\d]{1,2}(\*[\d]+)?)$/']], '--ttl' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0, 'max_range' => 255]], '--spoof-mac' => FILTER_VALIDATE_MAC, '--badsum' => FILTER_VALIDATE_BOOLEAN, @@ -114,7 +114,7 @@ if ($preset && isset($PRESETS[$preset])) { $inputs = array_merge($COMMONOPTIONS, $inputs); $inputs['--stylesheet'] = "$BASEDIR/$STYLESHEETSDIR/{$inputs['--stylesheet']}?"; -if($name) $inputs['--stylesheet'] .= "name=$name"; +if ($name) $inputs['--stylesheet'] .= "name=$name"; $options = ""; foreach ($inputs as $option => $value) { diff --git a/stylesheets/hostDetails.xsl b/stylesheets/hostDetails.xsl index fc2a7b4..2a4536e 100644 --- a/stylesheets/hostDetails.xsl +++ b/stylesheets/hostDetails.xsl @@ -11,18 +11,14 @@ - + - + - - + + @@ -38,415 +34,393 @@
- +
Résultat de la commande :
- - - -
+ + + + - - + - - - + + + + - + - -
+ + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + -

-
- - ui horizontal label +

+
+ + ui horizontal label + + green + red + + + +
+ + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Adresse IPv4Adresse MACConstructeurOSDistanceDernier redémarrage
+ + + + + + + + + + + + étape(s) + + +
+ + +
+
+ Informations supplémentaires
+
+ +
+
+
+ +

Services

+ +
+ + + + + +
+ + + + + + + + + + + + + + red + orange + green + green + orange + red + + + +
+
+
+
+
+ + : +
+ +
+ + + + / + + + +
+
+ + + + + + + + v + + + + + + + + +
+ +
+
+ Détails
+
+ +
+
+
+
+
+
+ + + - green - red + + rdp.php?v= + + &p= + + + + + + https + + + + + + :// + + : + + - -
- - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Adresse IPv4Adresse MACConstructeurOSDistanceDernier redémarrage
- - - - - - - - - - - - étape(s) - - -
- - -
-
- Informations supplémentaires
-
- + + Ouvrir + + + + +
-

Services

+ -
- - - - - + +
+
+ +
- - - - - - - - - - - - +
- red - orange - green - green - orange - red + + + + + + +
+
+ +
+ + +
- +
+
+
-
-
-
-
-
- - : -
- -
- - - - / - - - -
-
- - - - - - - - v - - - - - - - - -
- -
-
- Détails
-
- -
-
-
-
-
-
- - - - - - rdp.php?v= - - &p= - - - - - - https - - - - - - :// - - : - - - - - - Ouvrir - - - -