Skip to content

Commit 6290ed0

Browse files
Fixed bug when function waits for e-mails return but PS was not conducted
1 parent 051ba77 commit 6290ed0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datagather_modules/data_assembler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
6060
subdomain_urls, subdomain_mails, subdomain_ip, sd_socials = cp.domains_reverse_research(subdomains, report_file_type)
6161
print(Fore.GREEN + 'Processing SSL certificate gathering' + Style.RESET_ALL)
6262
issuer, subject, notBefore, notAfter, commonName, serialNumber = np.get_ssl_certificate(short_domain)
63-
print(Fore.GREEN + 'Processing MX records gathering' + Style.RESET_ALL)
63+
print(Fore.GREEN + 'Processing DNS records gathering' + Style.RESET_ALL)
6464
mx_records = np.get_dns_info(short_domain, report_file_type)
6565
print(Fore.GREEN + 'Extracting robots.txt and sitemap.xml' + Style.RESET_ALL)
6666
robots_txt_result = np.get_robots_txt(short_domain, robots_filepath)
@@ -96,6 +96,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
9696
else:
9797
print(Fore.RED + "Cant start PageSearch because no subdomains were detected")
9898
elif pagesearch_flag.lower() == 'n':
99+
ps_emails_return = ""
99100
pass
100101
data_array = [ip, res, mails, subdomains, subdomains_amount, social_medias, subdomain_mails, sd_socials,
101102
subdomain_ip, issuer, subject, notBefore, notAfter, commonName, serialNumber, mx_records,
@@ -112,6 +113,7 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
112113
else:
113114
print(Fore.RED + "Cant start PageSearch because no subdomains were detected")
114115
elif pagesearch_flag.lower() == 'n':
116+
ps_emails_return = ""
115117
pass
116118
data_array = [ip, res, mails, subdomains, subdomains_amount, social_medias, subdomain_mails, sd_socials,
117119
subdomain_ip, issuer, subject, notBefore, notAfter, commonName, serialNumber, mx_records,

0 commit comments

Comments
 (0)