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

Method _xpCmdshellConfigure

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

Source from the content-addressed store, hash-verified

85 return cmd
86
87 def _xpCmdshellConfigure(self, mode):
88 if Backend.isVersionWithin(("2000",)):
89 cmd = self._xpCmdshellConfigure2000(mode)
90 else:
91 cmd = self._xpCmdshellConfigure2005(mode)
92
93 inject.goStacked(agent.runAsDBMSUser(cmd))
94
95 def _xpCmdshellCheck(self):
96 cmd = "ping -n %d 127.0.0.1" % (conf.timeSec * 2)

Callers 1

xpCmdshellInitMethod · 0.95

Calls 4

isVersionWithinMethod · 0.80
runAsDBMSUserMethod · 0.80

Tested by

no test coverage detected