mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-06 14:13:15 +03:00
fix for --privileges (on MSSql --privileges returned exception)
This commit is contained in:
parent
bc79eec702
commit
fe3967bdec
|
@ -22,7 +22,7 @@ class Enumeration(GenericEnumeration):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
GenericEnumeration.__init__(self, "Microsoft SQL Server")
|
GenericEnumeration.__init__(self, "Microsoft SQL Server")
|
||||||
|
|
||||||
def getPrivileges(self, _):
|
def getPrivileges(self, *args):
|
||||||
warnMsg = "on Microsoft SQL Server it is not possible to fetch "
|
warnMsg = "on Microsoft SQL Server it is not possible to fetch "
|
||||||
warnMsg += "database users privileges"
|
warnMsg += "database users privileges"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Enumeration(GenericEnumeration):
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def getPrivileges(self, _):
|
def getPrivileges(self, *args):
|
||||||
warnMsg = "on SQLite it is not possible to enumerate the user privileges"
|
warnMsg = "on SQLite it is not possible to enumerate the user privileges"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user