diff --git a/scan.php b/scan.php
index 57f6847..878b201 100755
--- a/scan.php
+++ b/scan.php
@@ -29,14 +29,14 @@ foreach ($inputs as $arg => $value) {
}
$basedir = "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['REQUEST_URI']);
-exec("nmap$args --stylesheet $basedir/stylesheet.xsl -oX $SCANS_DIR/tmp $targets 2>&1", $stderr, $code);
+exec("nmap$args --stylesheet $basedir/stylesheet.xsl -oX $SCANS_DIR/.tmp $targets 2>&1", $stderr, $code);
if ($code) {
http_response_code(500);
die(implode("
\n", $stderr));
}
$xml = new DOMDocument();
-$xml->load("$SCANS_DIR/tmp");
+$xml->load("$SCANS_DIR/.tmp");
$xml->insertBefore($xml->createProcessingInstruction('xslt-param', "name='saveAs' value='".htmlentities($saveAs, ENT_QUOTES)."'"), $xml->documentElement);
$xml->insertBefore($xml->createProcessingInstruction('xslt-param', "name='scansDir' value='".htmlentities($SCANS_DIR, ENT_QUOTES)."'"), $xml->documentElement);
diff --git a/stylesheet.xsl b/stylesheet.xsl
index afddd6d..f821647 100755
--- a/stylesheet.xsl
+++ b/stylesheet.xsl
@@ -23,12 +23,26 @@
-
+
-
+
+
+ 60;URL=
+
+ /scan.php?targets=
+
+ &
+
+
+
+
+ compareWith=
+
+
+
lanScan -
@@ -113,8 +127,8 @@
Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
-
-
+
+
@@ -213,8 +227,9 @@ $.toast({
-
+
+
@@ -232,12 +247,14 @@ $.toast({
+
+
@@ -248,12 +265,14 @@ $.toast({
+
+
@@ -261,8 +280,9 @@ $.toast({
-
-
+
+
+
@@ -270,14 +290,28 @@ $.toast({
-
-
+
+
+
+
+ =
on
-
-
+ &
+
+
+
+
+
+
+ on
+
+
+
+
+