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.
This commit is contained in:
leiweibau
2022-06-28 20:52:34 +02:00
parent f5329ad495
commit 334eea8592
3 changed files with 51 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
<?php
$PIA_HOST_IP = $_REQUEST['scan'];
exec('nmap '.$PIA_HOST_IP, $output);
echo '<pre style="border: none;">';
foreach($output as $line){
echo $line . "\n";
}
echo '</pre>';
?>