From 22d909a37836694d7868881b6361c760a4dbcab3 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Wed, 29 Jun 2022 21:52:22 +0200 Subject: [PATCH] manual nmap scan improvements 3 options to do a scan. - fast (nmap -F) - normal - detailed (nmap -A) --- front/deviceDetails.php | 27 +++++++++++++++++++-------- front/php/server/nmap_scan.php | 13 +++++++++++-- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/front/deviceDetails.php b/front/deviceDetails.php index fd54144b..83ae3c69 100644 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -432,23 +432,34 @@
- - +

nmap Scans

- - + + + + +
+
    +
  • Fast Scan: Scan fewer ports than the default scan (a few seconds)
  • +
  • Default Scan: By default, Nmap scans the top 1,000 ports for each scan protocol requested. This catches roughly 93% of the TCP ports and 49% of the UDP ports. (about 5 sconds)
  • +
  • Detailed Scan: Default scan with enabled OS detection, version detection, script scanning and traceroute (up to 30 seconds and more)
  • +
+
-
+ +
diff --git a/front/php/server/nmap_scan.php b/front/php/server/nmap_scan.php index 074198a3..b0033c1a 100644 --- a/front/php/server/nmap_scan.php +++ b/front/php/server/nmap_scan.php @@ -1,8 +1,17 @@ Scan ('.$PIA_SCAN_MODE.') Results of: '.$PIA_HOST_IP.''; echo '
'; 
 foreach($output as $line){
     echo $line . "\n";