From d877edda61be3c8d3a7bcbf589a44c8f515bb981 Mon Sep 17 00:00:00 2001 From: ArnoStiefvater Date: Mon, 26 Oct 2020 09:24:52 +0100 Subject: [PATCH 1/2] Move more preferences to gvm-libs Move all scanner settings/preferences which have defaults and are not dependent on CMake variables to gvm-libs. This way they are available for openvas-nasl too. --- base/prefs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/base/prefs.c b/base/prefs.c index ef26a911a..29ef77591 100644 --- a/base/prefs.c +++ b/base/prefs.c @@ -60,6 +60,20 @@ prefs_init (void) prefs_set ("open_sock_max_attempts", "5"); prefs_set ("time_between_request", "0"); prefs_set ("nasl_no_signature_check", "yes"); + prefs_set ("max_hosts", "30"); + prefs_set ("max_checks", "10"); + prefs_set ("log_whole_attack", "no"); + prefs_set ("log_plugins_name_at_load", "no"); + prefs_set ("optimize_test", "yes"); + prefs_set ("non_simult_ports", "139, 445, 3389, Services/irc"); + prefs_set ("safe_checks", "yes"); + prefs_set ("auto_enable_dependencies", "yes"); + prefs_set ("drop_privileges", "no"); + prefs_set ("report_host_details", "yes"); + prefs_set ("vendor_version", "\0"); + prefs_set ("test_alive_hosts_only", "no"); + prefs_set ("debug_tls", "0"); + prefs_set ("allow_simult_ips_same_host", "yes"); } /** From d1a2e8a93cb6c11b4b2bc3de7c4bd7e4b9961ef4 Mon Sep 17 00:00:00 2001 From: ArnoStiefvater Date: Mon, 26 Oct 2020 09:33:42 +0100 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b835c35..f5164df4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Add support for new OSP element for defining alive test methods via separate subelements. [#409](https://github.com/greenbone/gvm-libs/pull/409) - Add v3 handling to get_cvss_score_from_base_metrics [#411](https://github.com/greenbone/gvm-libs/pull/411) - Add severity_date tag in epoch time format. [#412](https://github.com/greenbone/gvm-libs/pull/412) +- Make more scanner preferences available to openvas-nasl. [#413](https://github.com/greenbone/gvm-libs/pull/413) ### Changed - Add separators for a new (ip address) field in ERRMSG and DEADHOST messages. [#376](https://github.com/greenbone/gvm-libs/pull/376)