sqlmapproject/sqlmap · error · SqlmapGenericException

unable to find results for your search dork expression

Error message

unable to find results for your search dork expression

What it means

The search engine query for the supplied Google dork returned no result links, so no candidate hosts can be derived; it is raised inside the dork-result retrieval helper, not from the search engine itself.

Solutions

  1. Retry — Google often rate-limits or returns empty result sets transiently
  2. Use a different/more selective dork expression
  3. Search manually and feed the found URLs directly with -m/--batch file instead of -g
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at lib/core/option.py:379 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26). Data as JSON: /api/errors/abbed72b08f1caa6. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/option.py:379

def _doSearch():
    """
    This function performs search dorking, parses results
    and saves the testable hosts into the knowledge base.
    """

    if not conf.googleDork:
        return

    kb.data.onlyGETs = None

    def retrieve():
        links = search(conf.googleDork)

        if not links:
            errMsg = "unable to find results for your "
            errMsg += "search dork expression"
            raise SqlmapGenericException(errMsg)

        for link in links:
            link = urldecode(link)
            if re.search(r"(.*?)\?(.+)", link) or conf.forms:
                kb.targets.add((link, conf.method, conf.data, conf.cookie, None))
            elif re.search(URI_INJECTABLE_REGEX, link, re.I):
                if kb.data.onlyGETs is None and conf.data is None and not conf.googleDork:
                    message = "do you want to scan only results containing GET parameters? [Y/n] "
                    kb.data.onlyGETs = readInput(message, default='Y', boolean=True)
                if not kb.data.onlyGETs or conf.googleDork:
                    kb.targets.add((link, conf.method, conf.data, conf.cookie, None))

        return links

    while True:
        links = retrieve()

        if kb.targets:

View on GitHub (pinned to 0a35b20e39)