Fixed bug in PassiveDNS

This commit is contained in:
Ahmed Aboul-Ela 2016-07-17 03:43:12 +02:00
parent cf0c734996
commit 31f4a5190e
1 changed files with 2 additions and 2 deletions

View File

@ -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())