sqlmapproject/sqlmap · error · SqlmapNoneDataException
unable to continue in offline mode because of lack of…
Error message
unable to continue in offline mode because of lack of usable session data
What it means
Offline mode (--offline) was requested but the resumed hash DB contains no stored DBMS fingerprint; without network traffic there is no way to obtain or confirm the back-end DBMS, so the run cannot continue.
Solutions
- Run once without --offline to populate session data
- Provide a valid session file from a previous run
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/core/target.py:557 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/4cf243e817229562.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/target.py:557
kb.injections.append(injection)
kb.vulnHosts.add(conf.hostname)
_resumeDBMS()
_resumeOS()
def _resumeDBMS():
"""
Resume stored DBMS information from HashDB
"""
value = hashDBRetrieve(HASHDB_KEYS.DBMS)
if not value:
if conf.offline:
errMsg = "unable to continue in offline mode "
errMsg += "because of lack of usable "
errMsg += "session data"
raise SqlmapNoneDataException(errMsg)
else:
return
dbms = value.lower()
dbmsVersion = [UNKNOWN_DBMS_VERSION]
_ = "(%s)" % ('|'.join(SUPPORTED_DBMS))
_ = re.search(r"\A%s (.*)" % _, dbms, re.I)
if _:
dbms = _.group(1).lower()
dbmsVersion = [_.group(2)]
if conf.dbms:
check = True
for aliases, _, _, _ in DBMS_DICT.values():
if conf.dbms.lower() in aliases and dbms not in aliases:
check = False
breakView on GitHub (pinned to 0a35b20e39)