(self, cmd, silent=False)
| 46 | XP_cmdshell.__init__(self) |
| 47 | |
| 48 | def execCmd(self, cmd, silent=False): |
| 49 | if Backend.isDbms(DBMS.PGSQL) and self.checkCopyExec(): |
| 50 | self.copyExecCmd(cmd) |
| 51 | |
| 52 | elif self.webBackdoorUrl and (not isStackingAvailable() or kb.udfFail): |
| 53 | self.webBackdoorRunCmd(cmd) |
| 54 | |
| 55 | elif Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): |
| 56 | self.udfExecCmd(cmd, silent=silent) |
| 57 | |
| 58 | elif Backend.isDbms(DBMS.MSSQL): |
| 59 | self.xpCmdshellExecCmd(cmd, silent=silent) |
| 60 | |
| 61 | else: |
| 62 | errMsg = "Feature not yet implemented for the back-end DBMS" |
| 63 | raise SqlmapUnsupportedFeatureException(errMsg) |
| 64 | |
| 65 | def evalCmd(self, cmd, first=None, last=None): |
| 66 | retVal = None |
no test coverage detected