From 1ae7e0b20942cc2e7a22669c9e0b509c4fa687dd Mon Sep 17 00:00:00 2001 From: OSINT-TECHNOLOGIES <77023667+OSINT-TECHNOLOGIES@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:55:11 +0300 Subject: [PATCH] Added code to remove e-mails with bad encodings --- reporting_modules/pdf_report_creation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reporting_modules/pdf_report_creation.py b/reporting_modules/pdf_report_creation.py index d93a205..7e0eac5 100644 --- a/reporting_modules/pdf_report_creation.py +++ b/reporting_modules/pdf_report_creation.py @@ -84,6 +84,10 @@ def report_assembling(short_domain, url, case_comment, data_array, report_info_a if len(ps_emails_return) > 0: subdomain_mails += ps_emails_return subdomain_mails = list(set(subdomain_mails)) + substrings = ['m=Base64', 'Ë','Á','Æ','Å','Ä','Ò','Á','ó','ð','É','ë','â'] + for substring in substrings: + if any(substring in s for s in subdomain_mails): + subdomain_mails.remove(next(s for s in subdomain_mails if substring in s)) context = {'sh_domain': short_domain, 'full_url': url, 'ip_address': ip, 'registrar': res['registrar'], 'creation_date': res['creation_date'],'expiration_date': res['expiration_date'],