Adding support for --privileges to Snowflake implementation (#5980)

This commit is contained in:
Miroslav Stampar
2026-01-12 22:51:48 +01:00
parent ef6c3d40d3
commit f36d040206
5 changed files with 10 additions and 12 deletions

View File

@@ -23,8 +23,3 @@ class Enumeration(GenericEnumeration):
def searchColumn(self):
errMsg = "on Snowflake it is not possible to search columns"
raise SqlmapUnsupportedFeatureException(errMsg)
def getPrivileges(self, *args, **kwargs):
warnMsg = "on Snowflake it is not possible to enumerate the user privileges"
logger.warning(warnMsg)
return {}

View File

@@ -457,7 +457,7 @@ class Users(object):
# In MySQL >= 5.0 and Oracle we get the list
# of privileges as string
elif Backend.isDbms(DBMS.ORACLE) or (Backend.isDbms(DBMS.MYSQL) and kb.data.has_information_schema) or Backend.getIdentifiedDbms() in (DBMS.VERTICA, DBMS.MIMERSQL, DBMS.CUBRID):
elif Backend.isDbms(DBMS.ORACLE) or (Backend.isDbms(DBMS.MYSQL) and kb.data.has_information_schema) or Backend.getIdentifiedDbms() in (DBMS.VERTICA, DBMS.MIMERSQL, DBMS.CUBRID, DBMS.SNOWFLAKE):
privileges.add(privilege)
# In MySQL < 5.0 we get Y if the privilege is