fix(nuclei): add -sr, -srd, and -logs option
Some checks are pending
release-please / release-please (push) Waiting to run
Tests / coverage (3.11) (push) Blocked by required conditions
Tests / lint (3.11) (push) Waiting to run
Tests / unit (3.11) (push) Waiting to run
Tests / unit (3.8) (push) Waiting to run
Tests / integration (ubuntu-latest, 3.11) (push) Waiting to run
Tests / template (ubuntu-latest, 3.11) (push) Waiting to run

This commit is contained in:
Olivier Cervello 2026-05-11 21:29:21 +02:00
parent e3ff041130
commit 33b7f74252
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class katana(HttpCrawler):
form_fill = self.get_opt_value('form_fill')
form_extraction = self.get_opt_value('form_extraction')
store_responses = self.get_opt_value('store_responses')
output_folder = shelx.quote(f'{self.reports_folder}/.outputs')
output_folder = shlex.quote(f'{self.reports_folder}/.outputs')
if form_fill or form_extraction or store_responses:
self.cmd += f' -srd {output_folder}'
self._techs = {}

View file

@ -47,7 +47,7 @@ class nuclei(VulnMulti):
'hang_monitor': {'is_flag': True, 'short': 'hm', 'default': True, 'help': 'Enable nuclei hang monitoring'},
'headless_bulk_size': {'type': int, 'short': 'hbs', 'help': 'Maximum number of headless hosts to be analzyed in parallel per template'}, # noqa: E501
'input_mode': {'type': str, 'short': 'im', 'help': 'Mode of input file (list, burp, jsonl, yaml, openapi, swagger)'},
'logs': {'is_flag': True, 'internal': True, 'display': True, 'help': 'Log errors (-elog) and traces (-tlog) to output dir'},
'logs': {'is_flag': True, 'internal': True, 'display': True, 'help': 'Log errors (-elog) and traces (-tlog) to output dir'}, # noqa: E501
'new_templates': {'type': str, 'short': 'nt', 'help': 'Run only new templates added in latest nuclei-templates release'}, # noqa: E501
'omit_raw': {'is_flag': True, 'short': 'or', 'default': True, 'help': 'Omit requests/response pairs in the JSON, JSONL, and Markdown outputs (for findings only)'}, # noqa: E501
'response_size_read': {'type': int, 'default': CONFIG.http.response_max_size_bytes, 'help': 'Max body size to read (bytes)'}, # noqa: E501