7
7
import dorking_processor as dp
8
8
import networking_processor as np
9
9
from pagesearch_main import normal_search
10
+ from pagesearch_keywords import search_keywords_in_folder
10
11
11
12
try :
12
13
import requests
@@ -39,7 +40,7 @@ def report_preprocessing(self, short_domain, report_file_type):
39
40
os .makedirs (report_folder , exist_ok = True )
40
41
return casename , db_casename , db_creation_date , robots_filepath , sitemap_filepath , sitemap_links_filepath , report_file_type , report_folder , ctime
41
42
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 ):
43
44
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 )
44
45
print (Fore .GREEN + "Started scanning domain" + Style .RESET_ALL )
45
46
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):
95
96
to_search_array = [subdomains , social_medias , sd_socials ]
96
97
print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
97
98
normal_search (to_search_array , report_folder )
99
+ #search_keywords_in_folder(report_folder + '//ps_documents', keywords) WIP
98
100
print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
99
101
#to_search_array = [subdomains, social_medias, sd_socials, sitemap_links_filepath] WIP
100
102
elif pagesearch_flag .lower () == 'n' :
@@ -109,6 +111,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag):
109
111
to_search_array = [subdomains , social_medias , sd_socials ]
110
112
print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
111
113
normal_search (to_search_array , report_folder )
114
+ #search_keywords_in_folder(report_folder + '//ps_documents', keywords) WIP
112
115
print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
113
116
#to_search_array = [subdomains, social_medias, sd_socials, sitemap_links_filepath] WIP
114
117
elif pagesearch_flag .lower () == 'n' :
0 commit comments