custom scan

This commit is contained in:
2025-02-05 15:31:32 +01:00
parent 55f6be594a
commit 566a5a4c67
5 changed files with 639 additions and 575 deletions

View File

@ -124,15 +124,6 @@ if ($targets) {
'sudo' => FILTER_VALIDATE_BOOLEAN,
], false);
echo "<!--";
var_dump($inputs);
echo "-->\n";
$inputs["--datadir"] = $DATADIR;
$inputs["--script-args-file"] = $SCRIPTARGSFILE;
$inputs["-oX"] = "-";
$inputs["--stylesheet"] = "$BASEDIR/$STYLESHEETSDIR/lanScan.xsl#";
$options = "";
foreach ($inputs as $option => $value) {
if (substr($option, 0, 1) == '-') {
@ -152,7 +143,7 @@ if ($targets) {
}
}
$cmd = "$NMAP$options $targets";
$cmd = "$NMAP$options $CUSTOMSCANOPTIONS $targets";
$filename = str_replace("/", "!", $targets);
}