sqlmapproject/sqlmap · error · SqlmapFilePathException
unable to locate Metasploit Framework installation. You can…
Error message
unable to locate Metasploit Framework installation. You can get it at 'https://www.metasploit.com/download/'
What it means
Raised at the end of _setMetasploit() when no Metasploit Framework installation could be located: msfEnvPathExists stayed False after probing conf.msfPath and the PATH environment for msf consoles/payload tools.
Solutions
- Install Metasploit Framework from https://www.metasploit.com/download/
- Point --msf-path at the Metasploit installation directory
- Ensure the Metasploit bin directory is on PATH so auto-detection succeeds
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at lib/core/option.py:738 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/12c231c995bd6436.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/option.py:738
kb.oldMsf = False
elif all(os.path.exists(normalizePath(os.path.join(envPath, "%s%s" % (_, ".bat" if IS_WIN else "")))) for _ in ("msfencode", "msfpayload")):
kb.oldMsf = True
else:
msfEnvPathExists = False
if msfEnvPathExists:
infoMsg = "Metasploit Framework has been found "
infoMsg += "installed in the '%s' path" % envPath
logger.info(infoMsg)
conf.msfPath = envPath
break
if not msfEnvPathExists:
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)View on GitHub (pinned to 0a35b20e39)