Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ffuf & nuclei error with custom header #951

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,6 @@ def directory_fuzz(
if CUSTOM_HEADER in yaml_configuration and yaml_configuration[CUSTOM_HEADER]:
ffuf_command += ' -H "{}"'.format(yaml_configuration[CUSTOM_HEADER])

logger.info(ffuf_command)

for subdomain in subdomains_fuzz:
command = None
# delete any existing dirs.json
Expand All @@ -1344,8 +1342,7 @@ def directory_fuzz(
)

logger.info(command)
process = subprocess.Popen(command.split())
process.wait()
os.system(remove_cmd_injection_chars(command))

try:
if os.path.isfile(dirs_results):
Expand Down Expand Up @@ -1883,8 +1880,7 @@ def vulnerability_scan(

logger.info('Running Nuclei Scanner!')
logger.info(final_nuclei_command)
process = subprocess.Popen(final_nuclei_command.split())
process.wait()
os.system(remove_cmd_injection_chars(final_nuclei_command))

try:
if os.path.isfile(vulnerability_result_path):
Expand Down