mirror of https://github.com/CIRCL/lookyloo
fixing subdomain check
parent
daf5102e8b
commit
bebdbe77f6
|
@ -774,8 +774,9 @@ class Lookyloo():
|
||||||
match = re.match(pattern, hostnode.name)
|
match = re.match(pattern, hostnode.name)
|
||||||
if match:
|
if match:
|
||||||
for regex in domains:
|
for regex in domains:
|
||||||
ignore_domain = ".*\." + regex + "$"
|
ignore_domain = regex + "$"
|
||||||
if re.match(ignore_domain, match.group("domain")) and regex.strip():
|
ignore_subdomain = ".*\." + regex + "$"
|
||||||
|
if (re.match(ignore_domain, match.group("domain")) or re.match(ignore_subdomain, match.group("domain"))) and regex.strip():
|
||||||
return None
|
return None
|
||||||
result = self.takedown_details(hostnode)
|
result = self.takedown_details(hostnode)
|
||||||
#ignoring mails
|
#ignoring mails
|
||||||
|
|
Loading…
Reference in New Issue