def prepare(self, target, vector_args): if "://" in target: target = general_utilities.get_domain(target) elif re.match(r"[0-9\.]", target): target = general_utilities.get_host_by_ip(target) self.target = target
def prepare(self, target, vector_args): self.target = None if "://" in target: self.target = general_utilities.get_domain(target) self.target = general_utilities.get_domain_without_suffix(target) else: self.target = general_utilities.get_domain_without_suffix(target) self.iana_base_url = "http://www.iana.org/whois?"
def prepare(self, target, vector_args=None): if "://" in target: target = general_utilities.get_domain() elif validators.is_ipv4(target): target = general_utilities.get_host_by_ip(target) self.target = target suffixes_list= self.base_path + "/static-data/suffixes.txt" with open(suffixes_list, 'r') as f: suffixes = f.read() self.suffixes = suffixes.split("\n") self.target = general_utilities.get_domain_without_suffix(target, suffixes=suffixes_list)
def prepare(self, target, vector_args): if "://" in target: target = general_utilities.get_domain(target) target = general_utilities.get_ip_by_host(target) self.target = target
def prepare(self, target, vector_args=None): if "://" in target: target = general_utilities.get_domain(target) self.target = target