a little less PHP/POST and a little more JS. the nmap scan now also works via the presence page
11 lines
234 B
PHP
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>';
|
|
?>
|