Files
NetAlertX/front/php/server/nmap_scan.php
leiweibau 169d69251c manual nmap scan
a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page
2022-06-28 23:04:14 +02:00

11 lines
234 B
PHP

<?php
$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";
}
echo '</pre>';
?>