Skip to content

Commit

Permalink
Added check for PageSearch if subdomains were not found
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES authored Jul 28, 2024
1 parent 44f877b commit 6f6f3b6
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions datagather_modules/data_assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
web_servers, cms, programming_languages, web_frameworks, analytics, javascript_frameworks, ports,
hostnames, cpes, tags, vulns, dorking_status, common_socials, total_socials]
if pagesearch_flag.lower() == 'y':
to_search_array = [subdomains, social_medias, sd_socials]
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
normal_search(to_search_array, report_folder, keywords, keywords_flag)
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
if subdomains[0] != 'No subdomains were found':
to_search_array = [subdomains, social_medias, sd_socials]
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
normal_search(to_search_array, report_folder, keywords, keywords_flag)
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
else:
print(Fore.RED + "Cant start PageSearch because no subdomains were detected")
elif pagesearch_flag.lower() == 'n':
pass
elif report_file_type == 'xlsx':
Expand All @@ -106,10 +109,13 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
web_servers, cms, programming_languages, web_frameworks, analytics, javascript_frameworks, ports,
hostnames, cpes, tags, vulns, dorking_status, common_socials, total_socials, parsed_links, subdomain_urls, dorking_results]
if pagesearch_flag.lower() == 'y':
to_search_array = [subdomains, social_medias, sd_socials]
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
normal_search(to_search_array, report_folder, keywords, keywords_flag)
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
if subdomains[0] != 'No subdomains were found':
to_search_array = [subdomains, social_medias, sd_socials]
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS START]\n" + Style.RESET_ALL)
normal_search(to_search_array, report_folder, keywords, keywords_flag)
print(Fore.LIGHTMAGENTA_EX + "\n[PAGESEARCH SUBPROCESS END]\n" + Style.RESET_ALL)
else:
print(Fore.RED + "Cant start PageSearch because no subdomains were detected")
elif pagesearch_flag.lower() == 'n':
pass

Expand Down

0 comments on commit 6f6f3b6

Please sign in to comment.