sqlmapproject/sqlmap · error · SqlmapSyntaxException

option '--technique' can't be empty

Error message

option '--technique' can't be empty

What it means

Startup value-validation guard in _basicOptionValidation: the technique string from --technique (conf.technique, e.g. BEUSTQ letters) must be non-empty; an empty value leaves sqlmap with no injection technique to test, so it raises before initialization proceeds.

Solutions

  1. Pass at least one technique letter, e.g. --technique=BEU
  2. Remove the --technique argument to use the default 'BEUSTQ'
  3. Check config-file/alias expansion that may be blanking the value
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at lib/core/option.py:3020 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/b8aebcdd8d45370f. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/option.py:3020

    if conf.csrfToken and conf.threads > 1:
        errMsg = "option '--csrf-token' is incompatible with option '--threads'"
        raise SqlmapSyntaxException(errMsg)

    if conf.requestFile and conf.url and conf.url != DUMMY_URL:
        errMsg = "option '-r' is incompatible with option '-u' ('--url')"
        raise SqlmapSyntaxException(errMsg)

    if conf.direct and conf.proxy:
        errMsg = "option '-d' is incompatible with option '--proxy'"
        raise SqlmapSyntaxException(errMsg)

    if conf.direct and conf.tor:
        errMsg = "option '-d' is incompatible with switch '--tor'"
        raise SqlmapSyntaxException(errMsg)

    if not conf.technique:
        errMsg = "option '--technique' can't be empty"
        raise SqlmapSyntaxException(errMsg)

    if conf.tor and conf.ignoreProxy:
        errMsg = "switch '--tor' is incompatible with switch '--ignore-proxy'"
        raise SqlmapSyntaxException(errMsg)

    if conf.tor and conf.proxy:
        errMsg = "switch '--tor' is incompatible with option '--proxy'"
        raise SqlmapSyntaxException(errMsg)

    if conf.proxy and conf.proxyFile:
        errMsg = "switch '--proxy' is incompatible with option '--proxy-file'"
        raise SqlmapSyntaxException(errMsg)

    if conf.proxyFreq and not conf.proxyFile:
        errMsg = "option '--proxy-freq' requires usage of option '--proxy-file'"
        raise SqlmapSyntaxException(errMsg)

    if conf.checkTor and not any((conf.tor, conf.proxy)):

View on GitHub (pinned to 0a35b20e39)