Skip to content

Commit

Permalink
Fixed ( Error: UnboundLocalError("local variable 'use_amass_config' r…
Browse files Browse the repository at this point in the history
…eferenced before assignment")
  • Loading branch information
Deathpoolxrs authored and yogeshojha committed Dec 26, 2023
1 parent 667f5b8 commit cf6e224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ def subdomain_discovery(
proxy = get_random_proxy()
if tool in default_subdomain_tools:
if tool == 'amass-passive':
use_amass_config = config.get(USE_AMASS_CONFIG, False)
cmd = f'amass enum -passive -d {host} -o {self.results_dir}/subdomains_amass.txt'
cmd += ' -config /root/.config/amass.ini' if use_amass_config else ''

Expand Down

0 comments on commit cf6e224

Please sign in to comment.