Skip to content

Commit ade1b39

Browse files
Updated data_assembler.py [fixed some bugs with PageSearch]
1 parent 9146a5a commit ade1b39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datagather_modules/data_assembler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import dorking_processor as dp
88
import networking_processor as np
99
from pagesearch_main import normal_search
10+
from pagesearch_keywords import search_keywords_in_folder
1011

1112
try:
1213
import requests
@@ -39,7 +40,7 @@ def report_preprocessing(self, short_domain, report_file_type):
3940
os.makedirs(report_folder, exist_ok=True)
4041
return casename, db_casename, db_creation_date, robots_filepath, sitemap_filepath, sitemap_links_filepath, report_file_type, report_folder, ctime
4142

42-
def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag):
43+
def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, keywords):
4344
casename, db_casename, db_creation_date, robots_filepath, sitemap_filepath, sitemap_links_filepath, report_file_type, report_folder, ctime = self.report_preprocessing(short_domain, report_file_type)
4445
print(Fore.GREEN + "Started scanning domain" + Style.RESET_ALL)
4546
print(Fore.GREEN + "Getting domain IP address" + Style.RESET_ALL)
@@ -95,6 +96,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag):
9596
to_search_array = [subdomains, social_medias, sd_socials]
9697
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
9798
normal_search(to_search_array, report_folder)
99+
#search_keywords_in_folder(report_folder + '//ps_documents', keywords) WIP
98100
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
99101
#to_search_array = [subdomains, social_medias, sd_socials, sitemap_links_filepath] WIP
100102
elif pagesearch_flag.lower() == 'n':
@@ -109,6 +111,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag):
109111
to_search_array = [subdomains, social_medias, sd_socials]
110112
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
111113
normal_search(to_search_array, report_folder)
114+
#search_keywords_in_folder(report_folder + '//ps_documents', keywords) WIP
112115
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
113116
#to_search_array = [subdomains, social_medias, sd_socials, sitemap_links_filepath] WIP
114117
elif pagesearch_flag.lower() == 'n':

0 commit comments

Comments
 (0)