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

Method _xpCmdshellConfigure2005

lib/takeover/xp_cmdshell.py:66–73  ·  view source on GitHub ↗
(self, mode)

Source from the content-addressed store, hash-verified

64 inject.goStacked(agent.runAsDBMSUser(cmd))
65
66 def _xpCmdshellConfigure2005(self, mode):
67 debugMsg = "configuring xp_cmdshell using sp_configure "
68 debugMsg += "stored procedure"
69 logger.debug(debugMsg)
70
71 cmd = getSQLSnippet(DBMS.MSSQL, "configure_xp_cmdshell", ENABLE=str(mode))
72
73 return cmd
74
75 def _xpCmdshellConfigure2000(self, mode):
76 debugMsg = "configuring xp_cmdshell using sp_addextendedproc "

Callers 1

_xpCmdshellConfigureMethod · 0.95

Calls 2

getSQLSnippetFunction · 0.90
debugMethod · 0.80

Tested by

no test coverage detected