From 31f4a5190e1dab4f07841899d513823407ceef7c Mon Sep 17 00:00:00 2001 From: Ahmed Aboul-Ela Date: Sun, 17 Jul 2016 03:43:12 +0200 Subject: [PATCH] Fixed bug in PassiveDNS --- sublist3r.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sublist3r.py b/sublist3r.py index 206a833..d89dad7 100644 --- a/sublist3r.py +++ b/sublist3r.py @@ -925,8 +925,8 @@ class PassiveDNS(multiprocessing.Process): for link in links: if self.domain not in link: continue - subdomain = link[:link.find('[')] - if subdomain not in self.subdomains and subdomain != self.domain: + subdomain = link[:link.find('[')].strip() + if subdomain not in self.subdomains and subdomain != self.domain and subdomain.endswith(self.domain): if verbose: print "%s%s: %s%s"%(R, self.engine_name, W, subdomain) self.subdomains.append(subdomain.strip())