Skip to content

Commit

Permalink
Merge pull request #1 from serrapa/master
Browse files Browse the repository at this point in the history
Fix yogeshojha#802 issue (Assetfinder results not created)
  • Loading branch information
h4x-waterstons authored Mar 1, 2023
2 parents 9577689 + bc918bd commit 244a8a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 244a8a3

Please sign in to comment.