sqlmapproject/sqlmap · error · RuntimeError

oracle does not behave (1=1 true / 1=2 false failed)

Error message

oracle does not behave (1=1 true / 1=2 false failed)

What it means

Error "oracle does not behave (1=1 true / 1=2 false failed)" thrown in sqlmapproject/sqlmap.

Source

Thrown at extra/esperanto/discovery.py:42

from .atlas import _PREFIX
from .atlas import _SUBSTRING
from .atlas import _TEXTCAST
from .records import Cap
from .records import OracleUndecided


class _Discovery(object):
    """_Discovery

    probe the target to build the Dialect; populates self.dialect, never extracts data."""

    def discover(self):
        with self._probePhase():
            return self._discover()

    def _discover(self):
        if not self._sanity():
            raise RuntimeError("oracle does not behave (1=1 true / 1=2 false failed)")
        try:
            self._discoverSubstring()
        except RuntimeError:
            # MAX-CONSTRAINT path: every substring fn is blacklisted. fall back to a
            # pure pattern-match extractor (LIKE/GLOB) that needs no SUBSTR/LENGTH/
            # code/hex fn.
            if self._fallbackPrefix():
                return self.dialect
            raise
        try:
            self._discoverLength()
        except RuntimeError:
            # no length fn - derive length from the substring's end behavior, provided
            # that end is observable (empty/NULL). one more laddered capability, so a
            # backend with substring but no CHAR_LENGTH/LENGTH/LEN still extracts.
            # if the end isn't observable (e.g. LEFT/RIGHT), drop to the pattern floor.
            if self.dialect.substring.get("beyond_end") not in ("empty", "null-or-error"):
                if self._fallbackPrefix():

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at extra/esperanto/discovery.py:42 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/b190744227121dc5. Report an issue: GitHub.