sqlmapproject/sqlmap · error · SystemExit

[!] cannot calibrate oracle: transport failed on a control…

Error message

[!] cannot calibrate oracle: transport failed on a control request

What it means

During auto-calibration the oracle could not fetch its control requests (1=1 probe) — transport to the target failed, so no true/false/error baseline can be established and the oracle is unusable for this target.

Solutions

  1. Verify the target URL is reachable and the proxy settings are correct
  2. Pass an explicit mode (string or code) instead of relying on auto-calibration
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at extra/esperanto/__main__.py:439 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/f0a7687bf9f84bc9. Report an issue: GitHub.

Appendix: source

Thrown at extra/esperanto/__main__.py:439

    dyn = set()

    def _deReflect(body, cond):
        return body.replace(cond, "") if cond else body     # drop the reflected payload

    def _clean(body, cond):
        body = _deReflect(body, cond)
        return "\n".join(ln for ln in body.split("\n") if ln not in dyn) if dyn else body

    mode, wanted, base = None, None, {}
    if string is not None:
        mode = "string"
    elif code is not None:
        mode, wanted = "code", int(code)
    else:                                                   # auto-calibrate
        (t1, s1), (t2, s2), (f1, sf) = fetch("1=1"), fetch("1=1"), fetch("1=2")
        if t1 is None or t2 is None or f1 is None:
            raise SystemExit("[!] cannot calibrate oracle: transport failed on a control request")
        dyn = set(t1.split("\n")) ^ set(t2.split("\n"))     # varies between identical requests -> dynamic
        tc, fc = _clean(t1, "1=1"), _clean(f1, "1=2")
        if s1 == s2 and s1 != sf:                           # (1) HTTP status alone separates true/false
            mode, wanted = "code", s1
        else:
            # (2) a SHORT distinctive true-only marker: the longest contiguous chunk that is
            # in the true page but not the false one, capped to a "longish" string (never the
            # whole document) and verified stable across BOTH true baselines
            t2c = _clean(t2, "1=1")
            blocks = difflib.SequenceMatcher(None, fc, tc, autojunk=False).get_opcodes()
            chunks = sorted((tc[b1:b2].strip() for op, _a1, _a2, b1, b2 in blocks
                             if op in ("insert", "replace")), key=len, reverse=True)
            wanted = None
            for chunk in chunks:
                marker = chunk[:64]                         # bounded, distinctive marker
                if len(marker) >= 6 and marker in t2c and marker not in fc:
                    mode, wanted = "autostring", marker
                    break

View on GitHub (pinned to 0a35b20e39)