From bebdbe77f655bde5808dbec870e22bf2ec348e30 Mon Sep 17 00:00:00 2001 From: Adrian Maraj Date: Tue, 9 Apr 2024 09:49:01 +0200 Subject: [PATCH] fixing subdomain check --- lookyloo/lookyloo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 7d47e8e..4cc73b7 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -774,8 +774,9 @@ class Lookyloo(): match = re.match(pattern, hostnode.name) if match: for regex in domains: - ignore_domain = ".*\." + regex + "$" - if re.match(ignore_domain, match.group("domain")) and regex.strip(): + ignore_domain = regex + "$" + ignore_subdomain = ".*\." + regex + "$" + if (re.match(ignore_domain, match.group("domain")) or re.match(ignore_subdomain, match.group("domain"))) and regex.strip(): return None result = self.takedown_details(hostnode) #ignoring mails