Skip to content

Commit

Permalink
Merge pull request #1098 from psyray/fix-nuclei-config
Browse files Browse the repository at this point in the history
Fix bad nuclei config name
  • Loading branch information
yogeshojha authored Dec 5, 2023
2 parents 753b261 + d380d21 commit e9771c5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ vulnerability_scan: {
'timeout': 5,
'fetch_gpt_report': true,
'nuclei': {
'use_conf': false,
'use_nuclei_config': false,
'severities': [
'unknown',
'info',
Expand Down
6 changes: 3 additions & 3 deletions web/fixtures/default_scan_engines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
Expand Down Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion web/reNgine/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion web/scanEngine/templates/scanEngine/add_engine.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h4 class="header-title">Scan Engines</h4>
# 'tags': [],
# 'templates': [],
# 'custom_templates': [],
'use_conf': false,
'use_nuclei_config': false,
'severities': [
'unknown',
'info',
Expand Down

0 comments on commit e9771c5

Please sign in to comment.