def check_domain(self, domain_name): check = CheckDomain() log.console_log(G + "[*] Checking Domain Availability.... " + W, 0) check.domain_checker(domain_name) log.console_log(G + "[*] Checking URL Alive... " + W, 0) check.alive_check(domain_name) log.console_log(G + "[*] Perfoming Whois... " + W) check.whois_domain(domain_name)
def check_domain(self, domain_name, proxy_address): check = CheckDomain() log.console_log( G + "{}[*] Checking Domain Availability.... {}".format(G, W), 0) check.domain_checker(domain_name, proxy_address) log.console_log("{}[*] Checking URL Alive... {}".format(G, W), 0) check.alive_check(domain_name, proxy_address) log.console_log("{}[*] Perfoming Whois... {}".format(G, W)) check.whois_domain(domain_name)
def check_domain(self, domain_name, proxy_address): check = CheckDomain() log.console_log( G + "{}[*] Checking Domain Availability... {}".format(G, W), 0) check.domain_checker(domain_name, proxy_address) log.console_log("{}[*] Checking URL Alive... {}".format(G, W), 0) check.alive_check(domain_name, proxy_address) log.console_log("{}[*] Perfoming Whois... {}".format(G, W)) whois_result = check.whois_domain(domain_name) email = re.findall(r'[a-zA-Z0-9._+-]+@[a-zA-Z0-9._+-]+\s*', str(whois_result)) self.db.insert_domain_result(self.project_id, self.strip_scheme(domain_name), str(whois_result), str(email))
def check_domain(self, domain_name, proxy_address): check = CheckDomain() log.console_log( G + "{}[*] Checking Domain Availability... {}".format(G, W), 0) check.domain_checker(domain_name, proxy_address) log.console_log("{}[*] Checking URL Alive... {}".format(G, W), 0) check.alive_check(domain_name, proxy_address) log.console_log("{}[*] Perfoming Whois... {}".format(G, W)) whois_result = check.whois_domain(domain_name) email = re.findall(r'[a-zA-Z0-9._+-]+@[a-zA-Z0-9._+-]+\s*', str(whois_result)) # JSON Beautifier json_bf = JsonBeautifier() json_whois = json_bf.beautifier(str(whois_result)) self.db.insert_domain_result(self.project_id, util.strip_scheme(domain_name), str(json_whois), util.clean_list_string(email))