mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Minor update to cleanup properly new xp_cmdshell
This commit is contained in:
parent
d726050bc4
commit
bd99470a4a
3 changed files with 4 additions and 5 deletions
|
|
@ -52,10 +52,9 @@ class Xp_cmdshell:
|
|||
inject.goStacked(agent.runAsDBMSUser(cmd))
|
||||
|
||||
self._randStr = randomStr(lowercase=True)
|
||||
self._xpCmdshellNew = "xp_%s" % randomStr(lowercase=True)
|
||||
self.xpCmdshellStr = "master..%s" % self._xpCmdshellNew
|
||||
self.xpCmdshellStr = "master..new_xp_cmdshell"
|
||||
|
||||
cmd = getSQLSnippet(DBMS.MSSQL, "create_new_xp_cmdshell", RANDSTR=self._randStr, XP_CMDSHELL_NEW=self._xpCmdshellNew)
|
||||
cmd = getSQLSnippet(DBMS.MSSQL, "create_new_xp_cmdshell", RANDSTR=self._randStr)
|
||||
|
||||
if Backend.isVersionWithin(("2005", "2008")):
|
||||
cmd += ";RECONFIGURE WITH OVERRIDE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue