sqlmapproject/sqlmap · error · SqlmapMissingMandatoryOptionException

you did not provide the back-end DBMS absolute path where…

Error message

you did not provide the back-end DBMS absolute path where you want to write the local file '%s'

What it means

--file-write/--file-dest pairing: a local source file was given but conf.fileDest (the absolute destination path on the DBMS host) is missing, so the write operation is underspecified and rejected.

Solutions

  1. Provide the destination with --file-dest (absolute path on the DBMS server)
  2. Verify both --file-write and --file-dest are present in the command line
  3. Use a writable destination directory on the target for the upload
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at lib/core/option.py:754 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/ce99cf04f48c8b99. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/option.py:754

        errMsg = "unable to locate Metasploit Framework installation. "
        errMsg += "You can get it at 'https://www.metasploit.com/download/'"
        raise SqlmapFilePathException(errMsg)

def _setWriteFile():
    if not conf.fileWrite:
        return

    debugMsg = "setting the write file functionality"
    logger.debug(debugMsg)

    if not os.path.exists(conf.fileWrite):
        errMsg = "the provided local file '%s' does not exist" % conf.fileWrite
        raise SqlmapFilePathException(errMsg)

    if not conf.fileDest:
        errMsg = "you did not provide the back-end DBMS absolute path "
        errMsg += "where you want to write the local file '%s'" % conf.fileWrite
        raise SqlmapMissingMandatoryOptionException(errMsg)

    conf.fileWriteType = getFileType(conf.fileWrite)

def _setOS():
    """
    Force the back-end DBMS operating system option.
    """

    if not conf.os:
        return

    if conf.os.lower() not in SUPPORTED_OS:
        errMsg = "you provided an unsupported back-end DBMS operating "
        errMsg += "system. The supported DBMS operating systems for OS "
        errMsg += "and file system access are %s. " % ', '.join([o.capitalize() for o in SUPPORTED_OS])
        errMsg += "If you do not know the back-end DBMS underlying OS, "
        errMsg += "do not provide it and sqlmap will fingerprint it for "
        errMsg += "you."

View on GitHub (pinned to 0a35b20e39)