(self, cmd, first=None, last=None)
| 63 | raise SqlmapUnsupportedFeatureException(errMsg) |
| 64 | |
| 65 | def evalCmd(self, cmd, first=None, last=None): |
| 66 | retVal = None |
| 67 | |
| 68 | if Backend.isDbms(DBMS.PGSQL) and self.checkCopyExec(): |
| 69 | retVal = self.copyExecCmd(cmd) |
| 70 | |
| 71 | elif self.webBackdoorUrl and (not isStackingAvailable() or kb.udfFail): |
| 72 | retVal = self.webBackdoorRunCmd(cmd) |
| 73 | |
| 74 | elif Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): |
| 75 | retVal = self.udfEvalCmd(cmd, first, last) |
| 76 | |
| 77 | elif Backend.isDbms(DBMS.MSSQL): |
| 78 | retVal = self.xpCmdshellEvalCmd(cmd, first, last) |
| 79 | |
| 80 | else: |
| 81 | errMsg = "Feature not yet implemented for the back-end DBMS" |
| 82 | raise SqlmapUnsupportedFeatureException(errMsg) |
| 83 | |
| 84 | return safechardecode(retVal) |
| 85 | |
| 86 | def runCmd(self, cmd): |
| 87 | choice = None |
no test coverage detected