{"record":{"id":"b8b7fe1f15bfac79","repo":"sqlmapproject/sqlmap","slug":"udfsetlocalpaths-method-must-be-defined-within-t","errorCode":null,"errorMessage":"udfSetLocalPaths() method must be defined within the plugin","messagePattern":"udfSetLocalPaths\\(\\) method must be defined within the plugin","errorType":"exception","errorClass":"SqlmapUnsupportedFeatureException","httpStatus":null,"severity":"error","filePath":"lib/takeover/udf.py","lineNumber":131,"sourceCode":"        if (not any((conf.fileRead, conf.commonFiles)) or (any((conf.fileRead, conf.commonFiles)) and not Backend.isDbms(DBMS.PGSQL))) and \"sys_fileread\" in self.sysUdfs:\n            self.sysUdfs.pop(\"sys_fileread\")\n\n        if not conf.osPwn:\n            self.sysUdfs.pop(\"sys_bineval\")\n\n        if not conf.osCmd and not conf.osShell and not conf.regRead:\n            self.sysUdfs.pop(\"sys_eval\")\n\n            if not conf.osPwn and not conf.regAdd and not conf.regDel:\n                self.sysUdfs.pop(\"sys_exec\")\n\n    def udfSetRemotePath(self):\n        errMsg = \"udfSetRemotePath() method must be defined within the plugin\"\n        raise SqlmapUnsupportedFeatureException(errMsg)\n\n    def udfSetLocalPaths(self):\n        errMsg = \"udfSetLocalPaths() method must be defined within the plugin\"\n        raise SqlmapUnsupportedFeatureException(errMsg)\n\n    def udfCreateFromSharedLib(self, udf, inpRet):\n        errMsg = \"udfCreateFromSharedLib() method must be defined within the plugin\"\n        raise SqlmapUnsupportedFeatureException(errMsg)\n\n    def udfInjectCore(self, udfDict):\n        written = False\n\n        for udf in udfDict.keys():\n            if udf in self.createdUdf:\n                continue\n\n            self.udfCheckAndOverwrite(udf)\n\n        if len(self.udfToCreate) > 0:\n            self.udfSetRemotePath()\n            checkFile(self.udfLocalFile)\n            written = self.writeFile(self.udfLocalFile, self.udfRemoteFile, \"binary\", forceCheck=True)","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/takeover/udf.py#L113-L149","documentation":"Error \"udfSetLocalPaths() method must be defined within the plugin\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/takeover/udf.py:131 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"}