88from lib .core .agent import agent
99from lib .core .common import Backend
1010from lib .core .common import getLimitRange
11- from lib .core .common import getSPQLSnippet
11+ from lib .core .common import getSQLSnippet
1212from lib .core .common import hashDBWrite
1313from lib .core .common import isListLike
1414from lib .core .common import isNoneValue
@@ -48,14 +48,14 @@ def __xpCmdshellCreate(self):
4848 if Backend .isVersionWithin (("2005" , "2008" )):
4949 logger .debug ("activating sp_OACreate" )
5050
51- cmd = getSPQLSnippet (DBMS .MSSQL , "activate_sp_oacreate" )
51+ cmd = getSQLSnippet (DBMS .MSSQL , "activate_sp_oacreate" )
5252 inject .goStacked (agent .runAsDBMSUser (cmd ))
5353
5454 self .__randStr = randomStr (lowercase = True )
5555 self .__xpCmdshellNew = "xp_%s" % randomStr (lowercase = True )
5656 self .xpCmdshellStr = "master..%s" % self .__xpCmdshellNew
5757
58- cmd = getSPQLSnippet (DBMS .MSSQL , "create_new_xp_cmdshell" , RANDSTR = self .__randStr , XP_CMDSHELL_NEW = self .__xpCmdshellNew )
58+ cmd = getSQLSnippet (DBMS .MSSQL , "create_new_xp_cmdshell" , RANDSTR = self .__randStr , XP_CMDSHELL_NEW = self .__xpCmdshellNew )
5959
6060 if Backend .isVersionWithin (("2005" , "2008" )):
6161 cmd += ";RECONFIGURE WITH OVERRIDE"
@@ -67,7 +67,7 @@ def __xpCmdshellConfigure2005(self, mode):
6767 debugMsg += "stored procedure"
6868 logger .debug (debugMsg )
6969
70- cmd = getSPQLSnippet (DBMS .MSSQL , "configure_xp_cmdshell" , ENABLE = str (mode ))
70+ cmd = getSQLSnippet (DBMS .MSSQL , "configure_xp_cmdshell" , ENABLE = str (mode ))
7171
7272 return cmd
7373
@@ -77,9 +77,9 @@ def __xpCmdshellConfigure2000(self, mode):
7777 logger .debug (debugMsg )
7878
7979 if mode == 1 :
80- cmd = getSPQLSnippet (DBMS .MSSQL , "enable_xp_cmdshell_2000" , ENABLE = str (mode ))
80+ cmd = getSQLSnippet (DBMS .MSSQL , "enable_xp_cmdshell_2000" , ENABLE = str (mode ))
8181 else :
82- cmd = getSPQLSnippet (DBMS .MSSQL , "disable_xp_cmdshell_2000" , ENABLE = str (mode ))
82+ cmd = getSQLSnippet (DBMS .MSSQL , "disable_xp_cmdshell_2000" , ENABLE = str (mode ))
8383
8484 return cmd
8585
0 commit comments