@@ -66,7 +66,7 @@ def report_preprocessing(self, short_domain, report_file_type):
6666 def data_gathering (self , short_domain , url , report_file_type , pagesearch_flag , keywords , keywords_flag , dorking_flag , used_api_flag , snapshotting_flag , username , from_date , end_date ):
6767 casename , db_casename , db_creation_date , robots_filepath , sitemap_filepath , sitemap_links_filepath , report_file_type , report_folder , ctime , report_ctime = self .report_preprocessing (short_domain , report_file_type )
6868 logging .info (f'### THIS LOG PART FOR { casename } CASE, TIME: { ctime } STARTS HERE' )
69- print (Fore .GREEN + "Started scanning domain " + Style .RESET_ALL )
69+ print (Fore .LIGHTMAGENTA_EX + "\n [STARTED BASIC DOMAIN SCAN] " + Style .RESET_ALL )
7070 print (Fore .GREEN + "[1/11] Getting domain IP address" + Style .RESET_ALL )
7171 ip = cp .ip_gather (short_domain )
7272 print (Fore .GREEN + '[2/11] Gathering WHOIS information' + Style .RESET_ALL )
@@ -111,16 +111,15 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
111111 total_ports = len (ports )
112112 total_ips = len (subdomain_ip ) + 1
113113 total_vulns = len (vulns )
114-
115- print (Fore .LIGHTMAGENTA_EX + "\n [BASIC SCAN END]\n " + Style .RESET_ALL )
114+ print (Fore .LIGHTMAGENTA_EX + "[ENDED BASIC DOMAIN SCAN]\n " + Style .RESET_ALL )
116115 if report_file_type == 'xlsx' :
117116 if pagesearch_flag .lower () == 'y' :
118117 if subdomains [0 ] != 'No subdomains were found' :
119118 to_search_array = [subdomains , social_medias , sd_socials ]
120- print (Fore .LIGHTMAGENTA_EX + "\n [ EXTENDED SCAN START: PAGESEARCH]\n " + Style .RESET_ALL )
119+ print (Fore .LIGHTMAGENTA_EX + "[STARTED EXTENDED DOMAIN SCAN WITH PAGESEARCH]\n " + Style .RESET_ALL )
121120 ps_emails_return , accessible_subdomains , emails_amount , files_counter , cookies_counter , api_keys_counter , website_elements_counter , exposed_passwords_counter , keywords_messages_list = subdomains_parser (to_search_array [0 ], report_folder , keywords , keywords_flag )
122121 total_links_counter = accessed_links_counter = "No results because PageSearch does not gather these categories"
123- print (Fore .LIGHTMAGENTA_EX + "\n [ EXTENDED SCAN END: PAGESEARCH]\n " + Style .RESET_ALL )
122+ print (Fore .LIGHTMAGENTA_EX + "[ENDED EXTENDED DOMAIN SCAN WITH PAGESEARCH]\n " + Style .RESET_ALL )
124123 else :
125124 print (Fore .RED + "Cant start PageSearch because no subdomains were detected" )
126125 accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = 'No results because no subdomains were found'
@@ -136,13 +135,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
136135 dorking_results = ['Google Dorking mode was not selected for this scan' ]
137136 else :
138137 dorking_db_path , table = establishing_dork_db_connection (dorking_flag .lower ())
139- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN START: { dorking_flag .upper ()} DORKING]\n " + Style .RESET_ALL )
138+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED EXTENDED DOMAIN SCAN WITH { dorking_flag .upper ()} DORKING TABLE ]\n " + Style .RESET_ALL )
140139 dorking_status , dorking_results = dp .transfer_results_to_xlsx (table , get_dorking_query (short_domain , dorking_db_path , table ))
141- print (Fore .LIGHTMAGENTA_EX + f"[EXTENDED SCAN END: { dorking_flag .upper ()} DORKING]\n " + Style .RESET_ALL )
140+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED EXTENDED DOMAIN SCAN WITH { dorking_flag .upper ()} DORKING TABLE ]\n " + Style .RESET_ALL )
142141
143142 api_scan_db = []
144143 if used_api_flag != ['Empty' ]:
145- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN START: API SCANNING ]\n " + Style .RESET_ALL )
144+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED EXTENDED DOMAIN SCAN WITH 3RD PARTY API ]\n " + Style .RESET_ALL )
146145 if '1' in used_api_flag :
147146 virustotal_output = api_virustotal_check (short_domain )
148147 api_scan_db .append ('VirusTotal' )
@@ -163,7 +162,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
163162 securitytrails_output = 'No results because user did not selected SecurityTrails API scan'
164163 if '3' not in used_api_flag :
165164 hudsonrock_output = 'No results because user did not selected HudsonRock API scan'
166- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN END: API SCANNING ]\n " + Style .RESET_ALL )
165+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED EXTENDED DOMAIN SCAN WITH 3RD PARTY API ]\n " + Style .RESET_ALL )
167166 else :
168167 virustotal_output = 'No results because user did not selected VirusTotal API scan'
169168 securitytrails_output = 'No results because user did not selected SecurityTrails API scan'
@@ -173,14 +172,14 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
173172 if snapshotting_flag .lower () in ['s' , 'p' , 'w' ]:
174173 config_values = read_config ()
175174 installed_browser = config_values ['installed_browser' ]
176- print (Fore .LIGHTMAGENTA_EX + f"\n [EXTENDED SCAN START: PAGE SNAPSHOTTING]\n " + Style .RESET_ALL )
175+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED DOMAIN SNAPSHOTTING]\n " + Style .RESET_ALL )
177176 if snapshotting_flag .lower () == 's' :
178177 take_screenshot (installed_browser , url , report_folder + '//screensnapshot.png' )
179178 elif snapshotting_flag .lower () == 'p' :
180179 save_page_as_html (url , report_folder + '//domain_html_copy.html' )
181180 elif snapshotting_flag .lower () == 'w' :
182181 download_snapshot (short_domain , from_date , end_date , report_folder )
183- print (Fore .LIGHTMAGENTA_EX + f"\n [EXTENDED SCAN END: PAGE SNAPSHOTTING]\n " + Style .RESET_ALL )
182+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED DOMAIN SNAPSHOTTING]\n " + Style .RESET_ALL )
184183 else :
185184 pass
186185
@@ -199,7 +198,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
199198 if pagesearch_flag .lower () == 'y' :
200199 if subdomains [0 ] != 'No subdomains were found' :
201200 to_search_array = [subdomains , social_medias , sd_socials ]
202- print (Fore .LIGHTMAGENTA_EX + "\n [ EXTENDED SCAN START: PAGESEARCH]\n " + Style .RESET_ALL )
201+ print (Fore .LIGHTMAGENTA_EX + "[STARTED EXTENDED DOMAIN SCAN WITH PAGESEARCH]" + Style .RESET_ALL )
203202 (
204203 ps_emails_return ,
205204 accessible_subdomains ,
@@ -214,7 +213,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
214213 total_links_counter = accessed_links_counter = "No results because PageSearch does not gather these categories"
215214 if len (keywords_messages_list ) == 0 :
216215 keywords_messages_list = ['No keywords were found' ]
217- print (Fore .LIGHTMAGENTA_EX + "\n [ EXTENDED SCAN END: PAGESEARCH]\n " + Style .RESET_ALL )
216+ print (Fore .LIGHTMAGENTA_EX + "[ENDED EXTENDED DOMAIN SCAN WITH PAGESEARCH]\n " + Style .RESET_ALL )
218217 else :
219218 print (Fore .RED + "Cant start PageSearch because no subdomains were detected" )
220219 ps_emails_return = ""
@@ -233,13 +232,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
233232 dorking_file_path = 'Google Dorking mode was not selected for this scan'
234233 else :
235234 dorking_db_path , table = establishing_dork_db_connection (dorking_flag .lower ())
236- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN START: { dorking_flag .upper ()} DORKING] \n " + Style .RESET_ALL )
235+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED EXTENDED DOMAIN SCAN WITH { dorking_flag .upper ()} DORKING TABLE] " + Style .RESET_ALL )
237236 dorking_status , dorking_file_path = dp .save_results_to_txt (report_folder , table , get_dorking_query (short_domain , dorking_db_path , table ))
238- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN END: { dorking_flag .upper ()} DORKING]\n " + Style .RESET_ALL )
237+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED EXTENDED DOMAIN SCAN WITH { dorking_flag .upper ()} DORKING TABLE ]\n " + Style .RESET_ALL )
239238
240239 api_scan_db = []
241240 if used_api_flag != ['Empty' ]:
242- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN START: API SCANNING] \n " + Style .RESET_ALL )
241+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED EXTENDED DOMAIN SCAN WITH 3RD PARTY API] " + Style .RESET_ALL )
243242 if '1' in used_api_flag :
244243 virustotal_output = api_virustotal_check (short_domain )
245244 api_scan_db .append ('VirusTotal' )
@@ -260,7 +259,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
260259 securitytrails_output = 'No results because user did not selected SecurityTrails API scan'
261260 if '3' not in used_api_flag :
262261 hudsonrock_output = 'No results because user did not selected HudsonRock API scan'
263- print (Fore .LIGHTMAGENTA_EX + f"\n [ EXTENDED SCAN END: API SCANNING ]\n " + Style .RESET_ALL )
262+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED EXTENDED DOMAIN SCAN WITH 3RD PARTY API ]\n " + Style .RESET_ALL )
264263 else :
265264 virustotal_output = 'No results because user did not selected VirusTotal API scan'
266265 securitytrails_output = 'No results because user did not selected SecurityTrails API scan'
@@ -270,14 +269,14 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
270269 if snapshotting_flag .lower () in ['s' , 'p' , 'w' ]:
271270 config_values = read_config ()
272271 installed_browser = config_values ['installed_browser' ]
273- print (Fore .LIGHTMAGENTA_EX + f"\n [EXTENDED SCAN START: PAGE SNAPSHOTTING]\n " + Style .RESET_ALL )
272+ print (Fore .LIGHTMAGENTA_EX + f"[STARTED DOMAIN SNAPSHOTTING]" + Style .RESET_ALL )
274273 if snapshotting_flag .lower () == 's' :
275274 take_screenshot (installed_browser , url , report_folder + '//screensnapshot.png' )
276275 elif snapshotting_flag .lower () == 'p' :
277276 save_page_as_html (url , report_folder + '//domain_html_copy.html' )
278277 elif snapshotting_flag .lower () == 'w' :
279278 download_snapshot (short_domain , from_date , end_date , report_folder )
280- print (Fore .LIGHTMAGENTA_EX + f"\n [EXTENDED SCAN END: PAGE SNAPSHOTTING]\n " + Style .RESET_ALL )
279+ print (Fore .LIGHTMAGENTA_EX + f"[ENDED DOMAIN SNAPSHOTTING]\n " + Style .RESET_ALL )
281280 else :
282281 pass
283282
0 commit comments