From 411069c7762bf67a45e291f3ff4a3a5b42793fe5 Mon Sep 17 00:00:00 2001 From: SuperBueno <73623652+dontclickthelink@users.noreply.github.com> Date: Tue, 4 Apr 2023 19:41:04 -0600 Subject: [PATCH] Vulnerability scanning fix for Nuclei v2.9.1 The "-json" option no longer works for Nuclei, it was changed to "-j". --- web/reNgine/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/reNgine/tasks.py b/web/reNgine/tasks.py index 6eaa3c99d..1df48255f 100644 --- a/web/reNgine/tasks.py +++ b/web/reNgine/tasks.py @@ -1787,11 +1787,11 @@ def vulnerability_scan( vulnerability_scan_input_file = results_dir + urls_path - nuclei_command = 'nuclei -json -l {} -o {}'.format( + nuclei_command = 'nuclei -j -l {} -o {}'.format( vulnerability_scan_input_file, vulnerability_result_path) else: url_to_scan = subdomain.http_url if subdomain.http_url else 'https://' + subdomain.name - nuclei_command = 'nuclei -json -u {} -o {}'.format(url_to_scan, vulnerability_result_path) + nuclei_command = 'nuclei -j -u {} -o {}'.format(url_to_scan, vulnerability_result_path) domain_id = scan_history.domain.id domain = Domain.objects.get(id=domain_id)