This repository has been archived on 2025-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
lanScan3/config.php
2024-10-18 12:11:45 +02:00

27 lines
817 B
PHP

<?php
$BASEDIR = "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . dirname($_SERVER['REQUEST_URI']);
$SCANSDIR = 'scans';
$NMAPDIR = dirname(`which nmap`) . "/../share/nmap";
$DATADIR = ".";
$presets = [
"lan" => [
'-PS' => 'microsoft-ds',
'-F' => true,
'-T5' => true,
'--stylesheet' => "$BASEDIR/xslt/hostsTable.xsl",
'refreshPeriod' => 60,
'sudo' => false,
],
"host" => [
'-Pn' => true,
'-F' => true,
'-sV' => true,
'-T5' => true,
'--datadir' => "$DATADIR",
'--stylesheet' => "$BASEDIR/xslt/servicesTable.xsl",
'refreshPeriod' => 60,
'sudo' => true,
],
];