mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-18 21:52:51 +00:00
minor refactoring, issue #51
This commit is contained in:
parent
8eefe4b71f
commit
b7d2680e55
3 changed files with 4 additions and 3 deletions
|
|
@ -76,10 +76,9 @@ class xp_cmdshell:
|
|||
logger.debug(debugMsg)
|
||||
|
||||
if mode == 1:
|
||||
cmd = "EXEC master..sp_addextendedproc 'xp_cmdshell', "
|
||||
cmd += "@dllname='xplog70.dll'"
|
||||
cmd = getSPQLSnippet(DBMS.MSSQL, "enable_xp_cmdshell_2000", ENABLE=str(mode))
|
||||
else:
|
||||
cmd = "EXEC master..sp_dropextendedproc 'xp_cmdshell'"
|
||||
cmd = getSPQLSnippet(DBMS.MSSQL, "disable_xp_cmdshell_2000", ENABLE=str(mode))
|
||||
|
||||
return cmd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue