manual nmap scan

a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page
This commit is contained in:
leiweibau
2022-06-28 23:04:14 +02:00
parent 3bb3ab9bc0
commit 0e82550588
3 changed files with 11 additions and 4 deletions

View File

@@ -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 '<pre style="border: none;">';
foreach($output as $line){
echo $line . "\n";