From b3cffaed3534ed9d2b60dd1fa4d2bfc6e474a670 Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 9 Oct 2024 03:07:56 +0200 Subject: [PATCH] default args --- config.php | 6 +++++- filter_inputs.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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;