@@ -93,10 +93,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
93
93
web_servers , cms , programming_languages , web_frameworks , analytics , javascript_frameworks , ports ,
94
94
hostnames , cpes , tags , vulns , dorking_status , common_socials , total_socials ]
95
95
if pagesearch_flag .lower () == 'y' :
96
- to_search_array = [subdomains , social_medias , sd_socials ]
97
- print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
98
- normal_search (to_search_array , report_folder , keywords , keywords_flag )
99
- print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
96
+ if subdomains [0 ] != 'No subdomains were found' :
97
+ to_search_array = [subdomains , social_medias , sd_socials ]
98
+ print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
99
+ normal_search (to_search_array , report_folder , keywords , keywords_flag )
100
+ print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
101
+ else :
102
+ print (Fore .RED + "Cant start PageSearch because no subdomains were detected" )
100
103
elif pagesearch_flag .lower () == 'n' :
101
104
pass
102
105
elif report_file_type == 'xlsx' :
@@ -106,10 +109,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
106
109
web_servers , cms , programming_languages , web_frameworks , analytics , javascript_frameworks , ports ,
107
110
hostnames , cpes , tags , vulns , dorking_status , common_socials , total_socials , parsed_links , subdomain_urls , dorking_results ]
108
111
if pagesearch_flag .lower () == 'y' :
109
- to_search_array = [subdomains , social_medias , sd_socials ]
110
- print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
111
- normal_search (to_search_array , report_folder , keywords , keywords_flag )
112
- print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
112
+ if subdomains [0 ] != 'No subdomains were found' :
113
+ to_search_array = [subdomains , social_medias , sd_socials ]
114
+ print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS START]\n " + Style .RESET_ALL )
115
+ normal_search (to_search_array , report_folder , keywords , keywords_flag )
116
+ print (Fore .LIGHTMAGENTA_EX + "\n [PAGESEARCH SUBPROCESS END]\n " + Style .RESET_ALL )
117
+ else :
118
+ print (Fore .RED + "Cant start PageSearch because no subdomains were detected" )
113
119
elif pagesearch_flag .lower () == 'n' :
114
120
pass
115
121
0 commit comments