mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
minor refactoring, issue #51
This commit is contained in:
parent
8eefe4b71f
commit
b7d2680e55
|
@ -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
|
||||
|
||||
|
|
1
procs/mssqlserver/disable_xp_cmdshell_2000.txt
Normal file
1
procs/mssqlserver/disable_xp_cmdshell_2000.txt
Normal file
|
@ -0,0 +1 @@
|
|||
EXEC master..sp_dropextendedproc 'xp_cmdshell';
|
1
procs/mssqlserver/enable_xp_cmdshell_2000.txt
Normal file
1
procs/mssqlserver/enable_xp_cmdshell_2000.txt
Normal file
|
@ -0,0 +1 @@
|
|||
EXEC master..sp_addextendedproc 'xp_cmdshell', @dllname='xplog70.dll';
|
Loading…
Reference in New Issue
Block a user