sqlmapproject/sqlmap · error · SqlmapUnsupportedFeatureException

udfSetLocalPaths() method must be defined within the plugin

Error message

udfSetLocalPaths() method must be defined within the plugin

What it means

Abstract-method sentinel: udfSetLocalPaths, which maps each sys_* UDF to its local compiled-binary path inside the sqlmap extras tree, was not overridden by the DBMS-specific plugin, so the injection cannot locate the libraries to upload.

Solutions

  1. Use a fully implemented DBMS plugin for UDF takeover
  2. Implement udfSetLocalPaths for the target DBMS plugin
  3. Fall back to custom shared-library injection (--sh-lib)
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at lib/takeover/udf.py:131 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/b8b7fe1f15bfac79. Report an issue: GitHub.

Appendix: source

Thrown at lib/takeover/udf.py:131

        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:
            self.sysUdfs.pop("sys_fileread")

        if not conf.osPwn:
            self.sysUdfs.pop("sys_bineval")

        if not conf.osCmd and not conf.osShell and not conf.regRead:
            self.sysUdfs.pop("sys_eval")

            if not conf.osPwn and not conf.regAdd and not conf.regDel:
                self.sysUdfs.pop("sys_exec")

    def udfSetRemotePath(self):
        errMsg = "udfSetRemotePath() method must be defined within the plugin"
        raise SqlmapUnsupportedFeatureException(errMsg)

    def udfSetLocalPaths(self):
        errMsg = "udfSetLocalPaths() method must be defined within the plugin"
        raise SqlmapUnsupportedFeatureException(errMsg)

    def udfCreateFromSharedLib(self, udf, inpRet):
        errMsg = "udfCreateFromSharedLib() method must be defined within the plugin"
        raise SqlmapUnsupportedFeatureException(errMsg)

    def udfInjectCore(self, udfDict):
        written = False

        for udf in udfDict.keys():
            if udf in self.createdUdf:
                continue

            self.udfCheckAndOverwrite(udf)

        if len(self.udfToCreate) > 0:
            self.udfSetRemotePath()
            checkFile(self.udfLocalFile)
            written = self.writeFile(self.udfLocalFile, self.udfRemoteFile, "binary", forceCheck=True)

View on GitHub (pinned to 0a35b20e39)