From 169d69251c5c45aca2f9dd7fe9abc0502e6d983a Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Tue, 28 Jun 2022 23:04:14 +0200 Subject: [PATCH] manual nmap scan a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page --- front/deviceDetails.php | 12 +++++++++--- front/devices.php | 2 +- front/php/server/nmap_scan.php | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 202a03e3..fd54144b 100644 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -436,13 +436,19 @@
- + + +
diff --git a/front/devices.php b/front/devices.php index 0e8bfbc5..664061dc 100644 --- a/front/devices.php +++ b/front/devices.php @@ -222,7 +222,7 @@ function initializeDatatable () { // Device Name {targets: [0], 'createdCell': function (td, cellData, rowData, row, col) { - $(td).html (''+ cellData +''); + $(td).html (''+ cellData +''); } }, // Favorite diff --git a/front/php/server/nmap_scan.php b/front/php/server/nmap_scan.php index f9257d12..074198a3 100644 --- a/front/php/server/nmap_scan.php +++ b/front/php/server/nmap_scan.php @@ -2,6 +2,7 @@ $PIA_HOST_IP = $_REQUEST['scan']; exec('nmap '.$PIA_HOST_IP, $output); +echo 'Scan Results of the target: '.$PIA_HOST_IP; echo '
'; 
 foreach($output as $line){
     echo $line . "\n";