diff --git a/back/pialert.py b/back/pialert.py index 11b56279..070f639c 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -1775,13 +1775,8 @@ def performNmapScan(devicesToScan): for device in devicesToScan: # Execute command output = "" - - # nmap -p portFrom-portTo 192.168.1.3 - # nmap -p -10000 192.168.1.3 + # prepare arguments from user supplied ones nmapArgs = ['nmap'] + NMAP_ARGS.split() + [device["dev_LastIP"]] - # nmapArgs = nmapArgs.append(NMAP_ARGS.split()) - # nmapArgs = nmapArgs.append(device["dev_LastIP"]) - try: # try runnning a subprocess with a forced (timeout + 30 seconds) in case the subprocess hangs @@ -1796,7 +1791,7 @@ def performNmapScan(devicesToScan): if output == "": # check if the subprocess failed file_print('[', timeNow(), '] Scan: Nmap FAIL - check logs') else: - file_print('[', timeNow(), '] Scan: Nmap SUCCESS') + file_print('[', timeNow(), '] Scan: Nmap SUCCESS for ', device["dev_LastIP"]) # check the last run output newLines = output.split('\n') diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 4530eeda..9497d17a 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -532,6 +532,8 @@ } +

Below results are from scheduled scans you can set up in Settings

+