mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-05 06:09:01 +00:00
Minor refactoring
This commit is contained in:
@@ -23,7 +23,7 @@ class Enumeration(GenericEnumeration):
|
||||
warnMsg = "on Microsoft Access it is not possible to get name of the current database"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
def isDba(self):
|
||||
def isDba(self, *args, **kwargs):
|
||||
warnMsg = "on Microsoft Access it is not possible to test if current user is DBA"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
@@ -39,7 +39,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return {}
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return kb.data.banner
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on H2 it is not possible to enumerate the user privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return kb.data.banner
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on HSQLDB it is not possible to enumerate the user privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return kb.data.cachedColumns
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on SAP MaxDB it is not possible to enumerate the user privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration
|
||||
from thirdparty import six
|
||||
|
||||
class Enumeration(GenericEnumeration):
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on Microsoft SQL Server it is not possible to fetch "
|
||||
warnMsg += "database users privileges, sqlmap will check whether "
|
||||
warnMsg += "or not the database users are database administrators"
|
||||
|
||||
@@ -18,7 +18,7 @@ class Enumeration(GenericEnumeration):
|
||||
warnMsg = "on SQLite it is not possible to get name of the current database"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
def isDba(self):
|
||||
def isDba(self, *args, **kwargs):
|
||||
warnMsg = "on SQLite the current user has all privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
@@ -36,7 +36,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return {}
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on SQLite it is not possible to enumerate the user privileges"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
return kb.data.cachedUsers
|
||||
|
||||
def getPrivileges(self, *args):
|
||||
def getPrivileges(self, *args, **kwargs):
|
||||
warnMsg = "on Sybase it is not possible to fetch "
|
||||
warnMsg += "database users privileges, sqlmap will check whether "
|
||||
warnMsg += "or not the database users are database administrators"
|
||||
|
||||
@@ -54,11 +54,11 @@ class Custom(object):
|
||||
|
||||
return output
|
||||
elif not isStackingAvailable() and not conf.direct:
|
||||
warnMsg = "execution of non-query SQL statements is only "
|
||||
warnMsg += "available when stacked queries are supported"
|
||||
logger.warn(warnMsg)
|
||||
warnMsg = "execution of non-query SQL statements is only "
|
||||
warnMsg += "available when stacked queries are supported"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
return None
|
||||
return None
|
||||
else:
|
||||
if sqlType:
|
||||
debugMsg = "executing %s query: '%s'" % (sqlType if sqlType is not None else "SQL", query)
|
||||
|
||||
Reference in New Issue
Block a user