This commit is contained in:
Yogesh Ojha
2021-08-26 12:15:19 +05:30
parent 1b14bb1b4b
commit aaa16b413e
5 changed files with 20 additions and 8 deletions
+4
View File
@@ -31,6 +31,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -62,6 +63,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -87,6 +89,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -116,4 +119,5 @@ volumes:
gf_patterns:
nuclei_templates:
github_repos:
wordlist:
scan_results:
+4
View File
@@ -31,6 +31,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -66,6 +67,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -91,6 +93,7 @@ services:
volumes:
- ./web:/usr/src/app
- github_repos:/usr/src/github
- wordlist:/usr/src/wordlist
- scan_results:/usr/src/scan_results
- gf_patterns:/root/.gf
- nuclei_templates:/root/nuclei-templates
@@ -150,6 +153,7 @@ volumes:
gf_patterns:
nuclei_templates:
github_repos:
wordlist:
scan_results:
static_volume:
+6 -1
View File
@@ -85,7 +85,12 @@ fi
# store scan_results
if [ ! -d "/usr/src/scan_results" ]
then
mkdir /usr/src/scan_results
mkdir /usr/src/scan_results
fi
# check if default wordlist for amass exists
if [ ! -f /usr/src/wordlist/deepmagic.com-prefixes-top50000.txt ]; then
wget https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/deepmagic.com-prefixes-top50000.txt -O /usr/src/wordlist/deepmagic.com-prefixes-top50000.txt
fi
# test tools, required for configuration
+5 -6
View File
@@ -382,17 +382,16 @@ def subdomain_scan(task, domain, yaml_configuration, results_dir, activity_id, o
if AMASS_WORDLIST in yaml_configuration[SUBDOMAIN_DISCOVERY]:
wordlist = yaml_configuration[SUBDOMAIN_DISCOVERY][AMASS_WORDLIST]
if wordlist == 'default':
wordlist_path = settings.TOOL_LOCATION + AMASS_DEFAULT_WORDLIST_PATH
wordlist_path = '/usr/src/wordlist/deepmagic.com-prefixes-top50000.txt'
else:
wordlist_path = settings.TOOL_LOCATION + 'wordlist/' + wordlist + '.txt'
wordlist_path = '/usr/src/wordlist/' + wordlist + '.txt'
if not os.path.exists(wordlist_path):
wordlist_path = settings.TOOL_LOCATION + AMASS_WORDLIST
wordlist_path = '/usr/src/' + AMASS_WORDLIST
amass_command = amass_command + \
' -brute -w {}'.format(wordlist_path)
if amass_config_path:
amass_command = amass_command + \
' -config {}'.format(settings.TOOL_LOCATION +
'scan_results/' + amass_config_path)
' -config {}'.format('/usr/src/scan_results/' + amass_config_path)
# Run Amass Active
logging.info(amass_command)
@@ -878,7 +877,7 @@ def directory_brute(task, domain, yaml_configuration, results_dir, activity_id):
'default' in yaml_configuration[DIR_FILE_SEARCH][WORDLIST]):
wordlist_location = '/usr/src/github/dirsearch/db/dicc.txt'
else:
wordlist_location = settings.TOOL_LOCATION + 'wordlist/' + \
wordlist_location = '/usr/src/wordlist/' + \
yaml_configuration[DIR_FILE_SEARCH][WORDLIST] + '.txt'
dirsearch_command += ' -w {}'.format(wordlist_location)
+1 -1
View File
@@ -99,7 +99,7 @@ def add_wordlist(request):
if txt_file.content_type == 'text/plain':
wordlist_content = txt_file.read().decode('UTF-8', "ignore")
wordlist_file = open(
settings.TOOL_LOCATION +
'/usr/src/' +
'wordlist/' +
form.cleaned_data['short_name'] + '.txt',
'w')