diff --git a/bin/modules/DomClassifier.py b/bin/modules/DomClassifier.py index ba555a76..505ef53c 100755 --- a/bin/modules/DomClassifier.py +++ b/bin/modules/DomClassifier.py @@ -73,15 +73,17 @@ class DomClassifier(AbstractModule): for dns_record in self.c.vdomain: self.add_message_to_queue(obj=None, message=dns_record) - localizeddomains = self.c.include(expression=self.cc_tld) - if localizeddomains: - print(localizeddomains) - self.redis_logger.warning(f"DomainC;{item_source};{item_date};{item_basename};Checked {localizeddomains} located in {self.cc_tld};{item.get_id()}") + if self.cc_tld: + localizeddomains = self.c.include(expression=self.cc_tld) + if localizeddomains: + print(localizeddomains) + self.redis_logger.warning(f"DomainC;{item_source};{item_date};{item_basename};Checked {localizeddomains} located in {self.cc_tld};{item.get_id()}") - localizeddomains = self.c.localizedomain(cc=self.cc) - if localizeddomains: - print(localizeddomains) - self.redis_logger.warning(f"DomainC;{item_source};{item_date};{item_basename};Checked {localizeddomains} located in {self.cc};{item.get_id()}") + if self.cc: + localizeddomains = self.c.localizedomain(cc=self.cc) + if localizeddomains: + print(localizeddomains) + self.redis_logger.warning(f"DomainC;{item_source};{item_date};{item_basename};Checked {localizeddomains} located in {self.cc};{item.get_id()}") if r_result: return self.c.vdomain diff --git a/configs/core.cfg.sample b/configs/core.cfg.sample index 852590c5..0e0b900f 100644 --- a/configs/core.cfg.sample +++ b/configs/core.cfg.sample @@ -222,10 +222,13 @@ password = ail_trackers cc_critical = DE [DomClassifier] -cc = DE -cc_tld = r'\.de$' +#cc = DE +#cc_tld = r'\.de$' +cc = +cc_tld = dns = 8.8.8.8 + [Mail] dns = 8.8.8.8