From bc918bd132c48bcfe71c061894cf0ac36b5186af Mon Sep 17 00:00:00 2001 From: serrapa <26407305+serrapa@users.noreply.github.com> Date: Fri, 3 Feb 2023 09:47:25 +0100 Subject: [PATCH] Fix #802 issue (Assetfinder results not created) --- web/reNgine/tasks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/reNgine/tasks.py b/web/reNgine/tasks.py index 855e2ca3f..f315de1c9 100644 --- a/web/reNgine/tasks.py +++ b/web/reNgine/tasks.py @@ -583,13 +583,14 @@ def subdomain_scan( process.wait() elif tool == 'assetfinder': - assetfinder_command = 'assetfinder --subs-only {} > {}/from_assetfinder.txt'.format( - domain.name, results_dir) + assetfinder_command = 'assetfinder --subs-only {}'.format( + domain.name) # Run Assetfinder logging.info(assetfinder_command) - process = subprocess.Popen(assetfinder_command.split()) - process.wait() + with open("{}/from_assetfinder.txt".format(results_dir), "w+") as f: + process = subprocess.Popen(assetfinder_command.split(), stdout=f) + process.wait() elif tool == 'sublist3r': sublist3r_command = 'python3 /usr/src/github/Sublist3r/sublist3r.py -d {} -t {} -o {}/from_sublister.txt'.format(