mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
refactoring (class names should always be Capital cased)
This commit is contained in:
parent
ddd296030d
commit
367d0639f0
42 changed files with 775 additions and 775 deletions
|
|
@ -7,7 +7,7 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
|||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
from lib.core.common import backend
|
||||
from lib.core.common import Backend
|
||||
from lib.core.common import randomStr
|
||||
from lib.core.common import readInput
|
||||
from lib.core.common import wasLastRequestDelayed
|
||||
|
|
@ -30,7 +30,7 @@ class xp_cmdshell:
|
|||
def __xpCmdshellCreate(self):
|
||||
cmd = ""
|
||||
|
||||
if backend.isVersionWithin(("2005", "2008")):
|
||||
if Backend.isVersionWithin(("2005", "2008")):
|
||||
logger.debug("activating sp_OACreate")
|
||||
|
||||
cmd += "EXEC master..sp_configure 'show advanced options', 1; "
|
||||
|
|
@ -49,7 +49,7 @@ class xp_cmdshell:
|
|||
cmd += "EXEC sp_OADestroy @ID'; "
|
||||
cmd += "EXEC master..sp_executesql @%s;" % self.__randStr
|
||||
|
||||
if backend.isVersionWithin(("2005", "2008")):
|
||||
if Backend.isVersionWithin(("2005", "2008")):
|
||||
cmd += " RECONFIGURE WITH OVERRIDE;"
|
||||
|
||||
inject.goStacked(cmd)
|
||||
|
|
@ -81,7 +81,7 @@ class xp_cmdshell:
|
|||
return cmd
|
||||
|
||||
def __xpCmdshellConfigure(self, mode):
|
||||
if backend.isVersionWithin(("2005", "2008")):
|
||||
if Backend.isVersionWithin(("2005", "2008")):
|
||||
cmd = self.__xpCmdshellConfigure2005(mode)
|
||||
else:
|
||||
cmd = self.__xpCmdshellConfigure2000(mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue