MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / execCmd

Method execCmd

lib/takeover/abstraction.py:48–63  ·  view source on GitHub ↗
(self, cmd, silent=False)

Source from the content-addressed store, hash-verified

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

Callers 12

runCmdMethod · 0.95
_runIcmpshSlaveRemoteMethod · 0.80
icmpPwnMethod · 0.80
addRegKeyMethod · 0.80
delRegKeyMethod · 0.80
delRemoteFileMethod · 0.80
_updateDestChunkMethod · 0.80
_stackedWriteFilePSMethod · 0.80
_stackedWriteFileVbsMethod · 0.80

Calls 9

isStackingAvailableFunction · 0.90
isDbmsMethod · 0.80
checkCopyExecMethod · 0.80
copyExecCmdMethod · 0.80
webBackdoorRunCmdMethod · 0.80
getIdentifiedDbmsMethod · 0.80
udfExecCmdMethod · 0.80
xpCmdshellExecCmdMethod · 0.80

Tested by

no test coverage detected