little fixes
This commit is contained in:
@ -20,7 +20,7 @@ if (!file_exists($path)) {
|
||||
|
||||
$xml = simplexml_load_file($path);
|
||||
$cmd = $xml["args"];
|
||||
if (substr( $cmd, 0, 5 ) != "nmap ") {
|
||||
if (substr($cmd, 0, 5) != "nmap ") {
|
||||
die("Erreur : $path n'est pas un fichier de scan nmap");
|
||||
}
|
||||
|
||||
@ -29,4 +29,4 @@ $cmd = $NMAP . substr($xml["args"], 4);
|
||||
header('Content-type: text/xml');
|
||||
system("$cmd", $retcode);
|
||||
|
||||
exit();
|
||||
exit();
|
||||
|
Reference in New Issue
Block a user