From 41873244567cde536bebd248b6175e34840e53cb Mon Sep 17 00:00:00 2001 From: OSINT-TECHNOLOGIES <77023667+OSINT-TECHNOLOGIES@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:40:55 +0300 Subject: [PATCH] Fixed bug when PS crashes DPULSE if no subdomains were found --- datagather_modules/data_assembler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datagather_modules/data_assembler.py b/datagather_modules/data_assembler.py index 5ed8e40..7012563 100644 --- a/datagather_modules/data_assembler.py +++ b/datagather_modules/data_assembler.py @@ -101,6 +101,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k else: print(Fore.RED + "Cant start PageSearch because no subdomains were detected") ps_emails_return = "" + accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = 'No data was gathered because no subdomains were found' pass elif pagesearch_flag.lower() == 'si': print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN START: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) @@ -137,6 +138,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN END: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) elif pagesearch_flag.lower() == 'n': ps_emails_return = "" + accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = 'No data was gathered because no subdomains were found' pass data_array = [ip, res, mails, subdomains, subdomains_amount, social_medias, subdomain_mails, sd_socials,