Fixed bug in PassiveDNS
This commit is contained in:
parent
cf0c734996
commit
31f4a5190e
|
@ -925,8 +925,8 @@ class PassiveDNS(multiprocessing.Process):
|
||||||
for link in links:
|
for link in links:
|
||||||
if self.domain not in link:
|
if self.domain not in link:
|
||||||
continue
|
continue
|
||||||
subdomain = link[:link.find('[')]
|
subdomain = link[:link.find('[')].strip()
|
||||||
if subdomain not in self.subdomains and subdomain != self.domain:
|
if subdomain not in self.subdomains and subdomain != self.domain and subdomain.endswith(self.domain):
|
||||||
if verbose:
|
if verbose:
|
||||||
print "%s%s: %s%s"%(R, self.engine_name, W, subdomain)
|
print "%s%s: %s%s"%(R, self.engine_name, W, subdomain)
|
||||||
self.subdomains.append(subdomain.strip())
|
self.subdomains.append(subdomain.strip())
|
||||||
|
|
Loading…
Reference in New Issue