This commit is contained in:
Adrien MALINGREY 2023-04-11 01:43:48 +02:00
parent 6243bc66e5
commit b3aa55c9b4

View File

@ -42,12 +42,13 @@ foreach (scandir("./confs/") as $file) {
}
}
}
$xml->asXML("site/$site.xml");
$targets = join(array_keys($targets), " ");
$services = join(array_keys($services), ",");
exec("nmap -v -Pn -p $services --script smb-enum-shares.nse,./http-get.nse,./http-favicon-url.nse --script-args=httpspider.maxpagecount=1 -oX 'scans/$site.xml' $targets\n");
$xml->asXML("site/$site.xml");
}
};