sqlmapproject/sqlmap · error · SqlmapNoneDataException
invalid usage of inference payload without knowledge of…
Error message
invalid usage of inference payload without knowledge of underlying DBMS
What it means
Guard in cleanupPayload(): the generated payload still contains the inference marker but Backend.getIdentifiedDbms() is None, so the DBMS-specific boolean inference query cannot be substituted into the payload; the sentinel fires instead of emitting a broken payload.
Solutions
- Force the back-end DBMS explicitly with --dbms so an inference query can be chosen
- Let sqlmap finish fingerprinting (-f / banner check) before inference techniques run
- Re-test using a non-inference technique (e.g. error-based or UNION) by limiting --technique
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at lib/core/agent.py:404 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/792c6d8b929451c8.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/agent.py:404
if INFERENCE_MARKER in payload:
if Backend.getIdentifiedDbms() is not None:
inference = queries[Backend.getIdentifiedDbms()].inference
if "dbms_version" in inference:
if isDBMSVersionAtLeast(inference.dbms_version):
inferenceQuery = inference.query
else:
inferenceQuery = inference.query2
else:
inferenceQuery = inference.query
payload = payload.replace(INFERENCE_MARKER, inferenceQuery)
elif not kb.testMode:
errMsg = "invalid usage of inference payload without "
errMsg += "knowledge of underlying DBMS"
raise SqlmapNoneDataException(errMsg)
return payload
def adjustLateValues(self, payload):
"""
Returns payload with a replaced late tags (e.g. SLEEPTIME)
"""
if payload:
if Backend.isDbms(DBMS.SPANNER):
payload = payload.replace(" FROM default.", " FROM ").replace(" FROM `default`.", " FROM ")
for match in re.finditer(r"(?s)%s(.*?)%s" % (BOUNDED_BASE64_MARKER, BOUNDED_BASE64_MARKER), payload):
_ = encodeBase64(match.group(1), binary=False, encoding=conf.encoding or UNICODE_ENCODING, safe=conf.base64Safe)
payload = payload.replace(match.group(0), _)
payload = payload.replace(SLEEP_TIME_MARKER, str(conf.timeSec))
payload = payload.replace(SINGLE_QUOTE_MARKER, "'")View on GitHub (pinned to 0a35b20e39)