sqlmapproject/sqlmap · error · SqlmapUnsupportedFeatureException

udfSetRemotePath() method must be defined within the plugin

Error message

udfSetRemotePath() method must be defined within the plugin

What it means

Abstract-method sentinel: the DBMS-specific takeover plugin did not override udfSetRemotePath, which defines where the compiled UDF shared library is staged on the database server. The generic UDF injection core cannot proceed without it.

Solutions

  1. Use a DBMS with a complete UDF plugin implementation
  2. Implement udfSetRemotePath in the plugin for the target DBMS
  3. Choose a non-UDF takeover technique
Defensive patterns

Strategy: fallback

When it happens

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

Appendix: source

Thrown at lib/takeover/udf.py:127

        return output

    def udfCheckNeeded(self):
        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)

View on GitHub (pinned to 0a35b20e39)