diff --git a/subbrute.py b/subbrute.py index 37191cd..bd771b9 100755 --- a/subbrute.py +++ b/subbrute.py @@ -351,11 +351,11 @@ def check(self, host, record_type = "ANY", total_rechecks = 0): added_cname = False #A max 20 lookups cname_host = host - resp = self.resolver.query(cname_host, "A", total_rechecks) + resp = self.check(cname_host, "A", total_rechecks) if not resp: - resp = self.resolver.query(cname_host, "AAAA", total_rechecks) + resp = self.check(cname_host, "AAAA", total_rechecks) if not resp: - resp = self.resolver.query(cname_host, "CNAME", total_rechecks) + resp = self.check(cname_host, "CNAME", total_rechecks) for r in resp: return_name, record_type, record_data = r #if record_type in ["CNAME", "A", "AAAA"]: @@ -856,4 +856,4 @@ def signal_init(): target = target.strip() if target: trace(target, record_type, options.subs, options.resolvers, options.process_count, options.print_data, output, json_output) - print_target(target, record_type, options.subs, options.resolvers, options.process_count, options.print_data, output, json_output) \ No newline at end of file + print_target(target, record_type, options.subs, options.resolvers, options.process_count, options.print_data, output, json_output)