{"record":{"id":"12c231c995bd6436","repo":"sqlmapproject/sqlmap","slug":"unable-to-locate-metasploit-framework-installation","errorCode":null,"errorMessage":"unable to locate Metasploit Framework installation. You can get it at 'https://www.metasploit.com/download/'","messagePattern":"unable to locate Metasploit Framework installation\\. You can get it at 'https://www\\.metasploit\\.com/download/'","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":738,"sourceCode":"                    kb.oldMsf = False\n                elif all(os.path.exists(normalizePath(os.path.join(envPath, \"%s%s\" % (_, \".bat\" if IS_WIN else \"\")))) for _ in (\"msfencode\", \"msfpayload\")):\n                    kb.oldMsf = True\n                else:\n                    msfEnvPathExists = False\n\n                if msfEnvPathExists:\n                    infoMsg = \"Metasploit Framework has been found \"\n                    infoMsg += \"installed in the '%s' path\" % envPath\n                    logger.info(infoMsg)\n\n                    conf.msfPath = envPath\n\n                    break\n\n    if not msfEnvPathExists:\n        errMsg = \"unable to locate Metasploit Framework installation. \"\n        errMsg += \"You can get it at 'https://www.metasploit.com/download/'\"\n        raise SqlmapFilePathException(errMsg)\n\ndef _setWriteFile():\n    if not conf.fileWrite:\n        return\n\n    debugMsg = \"setting the write file functionality\"\n    logger.debug(debugMsg)\n\n    if not os.path.exists(conf.fileWrite):\n        errMsg = \"the provided local file '%s' does not exist\" % conf.fileWrite\n        raise SqlmapFilePathException(errMsg)\n\n    if not conf.fileDest:\n        errMsg = \"you did not provide the back-end DBMS absolute path \"\n        errMsg += \"where you want to write the local file '%s'\" % conf.fileWrite\n        raise SqlmapMissingMandatoryOptionException(errMsg)\n\n    conf.fileWriteType = getFileType(conf.fileWrite)","sourceCodeStart":720,"sourceCodeEnd":756,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L720-L756","documentation":"Error \"unable to locate Metasploit Framework installation. You can get it at 'https://www.metasploit.com/download/'\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:738 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}