mirror of https://github.com/CIRCL/lookyloo
adding subdomain check
parent
de05cb550a
commit
7ae99eda18
|
@ -772,8 +772,11 @@ class Lookyloo():
|
||||||
domains = config['domain']['ignore']
|
domains = config['domain']['ignore']
|
||||||
pattern = r"(https?://)?(www\d?\.)?(?P<domain>[\w\.-]+\.\w+)(/\S*)?"
|
pattern = r"(https?://)?(www\d?\.)?(?P<domain>[\w\.-]+\.\w+)(/\S*)?"
|
||||||
match = re.match(pattern, hostnode.name)
|
match = re.match(pattern, hostnode.name)
|
||||||
if match and match.group("domain") in domains:
|
if match:
|
||||||
return None
|
for regex in domains:
|
||||||
|
ignore_domain = ".*\." + regex + "$"
|
||||||
|
if re.match(ignore_domain, match.group("domain")) and regex.strip():
|
||||||
|
return None
|
||||||
result = self.takedown_details(hostnode)
|
result = self.takedown_details(hostnode)
|
||||||
#ignoring mails
|
#ignoring mails
|
||||||
final_mails = []
|
final_mails = []
|
||||||
|
|
Loading…
Reference in New Issue