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:
|
||||
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())
|
||||
|
|
Loading…
Reference in New Issue