#343·Sublist3r

IF THE TOOL IS FAILING DUE TO VIRUSTOTAL... here is a quick fix

Author: yeti-codeCreated Sep 26, 2022Updated Aug 25, 2025

As title says above, I shall deliver.

Step 1: Open the sublist3r.py in your favorite IDE.

Step 2: Remove this code-block:

`class Virustotal(enumratorBaseThreaded): def init(self, domain, subdomains=None, q=None, silent=False, verbose=True): subdomains = subdomains or [] base_url = 'https://www.virustotal.com/ui/domains/{domain}/subdomains' self.engine_name = "Virustotal" self.q = q super(Virustotal, self).init(base_url, self.engine_name, domain, subdomains, q=q, silent=silent, verbose=verbose) self.url = self.base_url.format(domain=self.domain) return

# the main send_req need to be rewritten
def send_req(self, url):
    try:
        resp = self.session.get(url, headers=self.headers, timeout=self.timeout)
    except Exception as e:
        self.print_(e)
        resp = None

    return self.get_response(resp)

# once the send_req is rewritten we don't need to call this function, the stock one should be ok
def enumerate(self):
    while self.url != '':
        resp = self.send_req(self.url)
        resp = json.loads(resp)
        if 'error' in resp:
            self.print_(R + "[!] Error: Virustotal probably now is blocking our requests" + W)
            break
        if 'links' in resp and 'next' in resp['links']:
            self.url = resp['links']['next']
        else:
            self.url = ''
        self.extract_domains(resp)
    return self.subdomains

def extract_domains(self, resp):
    #resp is already parsed as json
    try:
        for i in resp['data']:
            if i['type'] == 'domain':
                subdomain = i['id']
                if not subdomain.endswith(self.domain):
                    continue
                if subdomain not in self.subdomains and subdomain != self.domain:
                    if self.verbose:
                        self.print_("%s%s: %s%s" % (R, self.engine_name, W, subdomain))
                    self.subdomains.append(subdomain.strip())
    except Exception:
        pa`

Step 3: command + f in your IDE and search for the string "virus"

Any lines that you find which match the search string, delete them.

Step 4: command + s to save the file.

Step 5: Run and check that the tool now works.

python3 sublist3r.py -d google.com

Tool should now work!