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

feat: update key generation function #1151

Merged
merged 5 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions web/reNgine/init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import secrets
import os
import random

logger = logging.getLogger(__name__)

Expand All @@ -27,7 +27,6 @@ def first_run(secret_file, base_dir):
return secret_key



def get_random():
choice = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
return ''.join([random.SystemRandom().choice(choice) for i in range(50)])
charlist = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
return ''.join(secrets.choice(charlist) for _ in range(64))
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
Loading