From d380d21872d88a78be1e7bb40e4c836eee22c759 Mon Sep 17 00:00:00 2001 From: Raynald Date: Mon, 4 Dec 2023 22:20:34 +0100 Subject: [PATCH] Fix bad nuclei config name --- README.md | 2 +- web/fixtures/default_scan_engines.yaml | 6 +++--- web/reNgine/definitions.py | 2 +- web/reNgine/tasks.py | 2 +- web/scanEngine/templates/scanEngine/add_engine.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c0af47891..1d5e0d238 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ vulnerability_scan: { 'timeout': 5, 'fetch_gpt_report': true, 'nuclei': { - 'use_conf': false, + 'use_nuclei_config': false, 'severities': [ 'unknown', 'info', diff --git a/web/fixtures/default_scan_engines.yaml b/web/fixtures/default_scan_engines.yaml index a2c88e607..f79cf0994 100644 --- a/web/fixtures/default_scan_engines.yaml +++ b/web/fixtures/default_scan_engines.yaml @@ -30,7 +30,7 @@ \ 'run_nuclei': true,\r\n 'run_dalfox': true,\r\n 'run_crlfuzz': true,\r\n \ 'enable_http_crawl': true,\r\n 'concurrency': 50,\r\n 'intensity': 'normal',\r\n \ 'rate_limit': 150,\r\n 'retries': 1,\r\n 'timeout': 5,\r\n 'fetch_gpt_report': - true,\r\n 'nuclei': {\r\n 'use_conf': false,\r\n 'severities': ['unknown', + true,\r\n 'nuclei': {\r\n 'use_nuclei_config': false,\r\n 'severities': ['unknown', 'info', 'low', 'medium', 'high', 'critical']\r\n }\r\n}\r\nwaf_detection: {\r\n\r\n}\r\nscreenshot: {\r\n 'enable_http_crawl': true,\r\n 'intensity': 'normal',\r\n 'timeout': 10,\r\n 'threads': 40\r\n}\r\n\r\n# custom_header: \"Cookie: Test\"" @@ -72,7 +72,7 @@ {\r\n 'run_nuclei': true,\r\n 'run_dalfox': true,\r\n 'run_crlfuzz': true,\r\n \ 'enable_http_crawl': true,\r\n 'concurrency': 50,\r\n 'intensity': 'normal',\r\n \ 'rate_limit': 150,\r\n 'retries': 1,\r\n 'timeout': 5,\r\n 'fetch_gpt_report': - true,\r\n 'nuclei': {\r\n 'use_conf': false,\r\n 'severities': ['unknown', + true,\r\n 'nuclei': {\r\n 'use_nuclei_config': false,\r\n 'severities': ['unknown', 'info', 'low', 'medium', 'high', 'critical']\r\n }\r\n}" default_engine: true - model: scanEngine.enginetype @@ -99,6 +99,6 @@ {\r\n 'run_nuclei': true,\r\n 'run_dalfox': true,\r\n 'run_crlfuzz': true,\r\n \ 'enable_http_crawl': false,\r\n 'concurrency': 50,\r\n 'intensity': 'normal',\r\n \ 'rate_limit': 150,\r\n 'retries': 1,\r\n 'timeout': 5,\r\n 'fetch_gpt_report': - true,\r\n 'nuclei': {\r\n 'use_conf': false,\r\n 'severities': ['low', + true,\r\n 'nuclei': {\r\n 'use_nuclei_config': false,\r\n 'severities': ['low', 'medium', 'high', 'critical']\r\n }\r\n}" default_engine: true diff --git a/web/reNgine/definitions.py b/web/reNgine/definitions.py index cdca7304e..49b5cebdd 100644 --- a/web/reNgine/definitions.py +++ b/web/reNgine/definitions.py @@ -72,7 +72,7 @@ TIMEOUT = 'timeout' USE_AMASS_CONFIG = 'use_amass_config' USE_NAABU_CONFIG = 'use_naabu_config' -USE_CONFIG = 'use_config' +USE_NUCLEI_CONFIG = 'use_nuclei_config' USE_SUBFINDER_CONFIG = 'use_subfinder_config' USES_TOOLS = 'uses_tools' VULNERABILITY_SCAN = 'vulnerability_scan' diff --git a/web/reNgine/tasks.py b/web/reNgine/tasks.py index 048dc5048..453781342 100644 --- a/web/reNgine/tasks.py +++ b/web/reNgine/tasks.py @@ -2291,7 +2291,7 @@ def nuclei_scan(self, urls=[], ctx={}, description=None): should_fetch_gpt_report = config.get(FETCH_GPT_REPORT, DEFAULT_GET_GPT_REPORT) proxy = get_random_proxy() nuclei_specific_config = config.get('nuclei', {}) - use_nuclei_conf = nuclei_specific_config.get(USE_CONFIG, False) + use_nuclei_conf = nuclei_specific_config.get(USE_NUCLEI_CONFIG, False) severities = nuclei_specific_config.get(NUCLEI_SEVERITY, NUCLEI_DEFAULT_SEVERITIES) tags = nuclei_specific_config.get(NUCLEI_TAGS, []) tags = ','.join(tags) diff --git a/web/scanEngine/templates/scanEngine/add_engine.html b/web/scanEngine/templates/scanEngine/add_engine.html index 11be40d16..53551ca52 100644 --- a/web/scanEngine/templates/scanEngine/add_engine.html +++ b/web/scanEngine/templates/scanEngine/add_engine.html @@ -170,7 +170,7 @@

Scan Engines

# 'tags': [], # 'templates': [], # 'custom_templates': [], - 'use_conf': false, + 'use_nuclei_config': false, 'severities': [ 'unknown', 'info',