sqlmapproject/sqlmap · error · SqlmapFilePathException

unable to mount the operating system takeover

Error message

unable to mount the operating system takeover

What it means

Raised by initEnv when the environment needed for the requested OS takeover is missing — typically the current session user lacks DBA privileges and no DBA credentials were supplied, so the takeover primitives cannot be installed.

Solutions

  1. Enumerate and crack a DBA password, then rerun with '--dbms-cred'
  2. Find another injection point running with higher privileges
  3. Use a different technique (e.g. file-based web backdoor) that needs no DBA
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at lib/takeover/abstraction.py:237 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/cbd6bce6055fc471. Report an issue: GitHub.

Appendix: source

Thrown at lib/takeover/abstraction.py:237

                warnMsg = "functionality requested probably does not work because "
                warnMsg += "the current session user is not a database administrator"

                if not conf.dbmsCred and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.PGSQL):
                    warnMsg += ". You can try to use option '--dbms-cred' "
                    warnMsg += "to execute statements as a DBA user if you "
                    warnMsg += "were able to extract and crack a DBA "
                    warnMsg += "password by any mean"

                logger.warning(warnMsg)

            if any((conf.osCmd, conf.osShell)) and Backend.isDbms(DBMS.PGSQL) and (self.checkCopyExec() or self.checkPlExec()):
                success = True
            elif Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
                success = self.udfInjectSys()

                if success is not True:
                    msg = "unable to mount the operating system takeover"
                    raise SqlmapFilePathException(msg)
            elif Backend.isDbms(DBMS.MSSQL):
                if mandatory:
                    self.xpCmdshellInit()
            else:
                errMsg = "feature not yet implemented for the back-end DBMS"
                raise SqlmapUnsupportedFeatureException(errMsg)

        self.envInitialized = True

View on GitHub (pinned to 0a35b20e39)