From 3bb3ab9bc013857b400b0ee44d4e4aa2e02281d8 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Tue, 28 Jun 2022 20:52:34 +0200 Subject: [PATCH] Add a manual nmap scan Because of my own network structure an automatic nmap scan is not useful. However, to be able to perform such a scan if necessary, I have added a tab with a manual nmap scan in the DeviceDetails. --- front/deviceDetails.php | 38 +++++++++++++++++++++++++++++++++- front/devices.php | 8 +++---- front/php/server/nmap_scan.php | 10 +++++++++ 3 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 front/php/server/nmap_scan.php diff --git a/front/deviceDetails.php b/front/deviceDetails.php index a28da225..202a03e3 100644 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -95,6 +95,7 @@ + + + + +
+ + +
+ + +
+ +
+ + + +
+ + + + + + +
@@ -477,7 +514,6 @@
- diff --git a/front/devices.php b/front/devices.php index b140f09c..0e8bfbc5 100644 --- a/front/devices.php +++ b/front/devices.php @@ -120,9 +120,9 @@ Last IP MAC Status - - - + MAC + Last IP Order + Rowid @@ -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 new file mode 100644 index 00000000..f9257d12 --- /dev/null +++ b/front/php/server/nmap_scan.php @@ -0,0 +1,10 @@ +'; +foreach($output as $line){ + echo $line . "\n"; +} +echo ''; +?> \ No newline at end of file