default args

This commit is contained in:
Adrien MALINGREY 2024-10-09 03:07:56 +02:00
parent a6ba7c4b23
commit b3cffaed35
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
<?php
$SCANS_DIR = 'scans';
$DEFAULT_ARGS = [
'-PS' => 'ssh,http,https,msrpc,microsoft-ds',
'-F' => true,
'-T5' => true,
];
$NMAP_DATADIR = '/usr/share/nmap';
$NMAP_OPTIONS = '-PSssh,http,https,msrpc,microsoft-ds -F -T5';

View File

@ -108,4 +108,4 @@ $input_args = filter_input_array(INPUT_GET, [
'-V' => ['filter' => FILTER_VALIDATE_BOOLEAN, 'flags' => FILTER_NULL_ON_FAILURE],
'--unprivileged' => ['filter' => FILTER_VALIDATE_BOOLEAN, 'flags' => FILTER_NULL_ON_FAILURE],
'-h' => ['filter' => FILTER_VALIDATE_BOOLEAN, 'flags' => FILTER_NULL_ON_FAILURE],
], false);
], false) ?: $DEFAULT_ARGS;