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

Method _xpCmdshellConfigure2000

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

Source from the content-addressed store, hash-verified

73 return cmd
74
75 def _xpCmdshellConfigure2000(self, mode):
76 debugMsg = "configuring xp_cmdshell using sp_addextendedproc "
77 debugMsg += "stored procedure"
78 logger.debug(debugMsg)
79
80 if mode == 1:
81 cmd = getSQLSnippet(DBMS.MSSQL, "enable_xp_cmdshell_2000", ENABLE=str(mode))
82 else:
83 cmd = getSQLSnippet(DBMS.MSSQL, "disable_xp_cmdshell_2000", ENABLE=str(mode))
84
85 return cmd
86
87 def _xpCmdshellConfigure(self, mode):
88 if Backend.isVersionWithin(("2000",)):

Callers 1

_xpCmdshellConfigureMethod · 0.95

Calls 2

getSQLSnippetFunction · 0.90
debugMethod · 0.80

Tested by

no test coverage detected