diff --git a/config.php b/config.php index e4e427e..f57a573 100644 --- a/config.php +++ b/config.php @@ -1,5 +1,9 @@ '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'; diff --git a/filter_inputs.php b/filter_inputs.php index 68d7d7f..4761831 100644 --- a/filter_inputs.php +++ b/filter_inputs.php @@ -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;