This commit is contained in:
2024-10-18 14:47:02 +02:00
parent a773e8b8d9
commit c3ed9f9fc2
12 changed files with 30 additions and 23 deletions

View File

@ -1,16 +1,16 @@
<?php
$BASEDIR = "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['REQUEST_URI']);
$BASEDIR = "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['REQUEST_URI']);
$SCANSDIR = 'scans';
$NMAPDIR = dirname(`which nmap`) . "/../share/nmap";
$DATADIR = ".";
$DATADIR = "datadir";
$presets = [
"lan" => [
'-PS' => 'microsoft-ds',
'-F' => true,
'-T5' => true,
'--stylesheet' => "$BASEDIR/xslt/hostsTable.xsl",
'-PS' => 'microsoft-ds',
'-F' => true,
'-T5' => true,
'--stylesheet' => "$BASEDIR/templates/hostsTable.xsl",
'refreshPeriod' => 60,
'sudo' => false,
],
@ -19,8 +19,8 @@ $presets = [
'-F' => true,
'-sV' => true,
'-T5' => true,
'--datadir' => "$DATADIR",
'--stylesheet' => "$BASEDIR/xslt/servicesTable.xsl",
'--script' => "http-info,smb-shares-size",
'--stylesheet' => "$BASEDIR/templates/servicesTable.xsl",
'refreshPeriod' => 60,
'sudo' => true,
],