Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/plugins/dbms/snowflake/enumeration.py
3556 views
1
#!/usr/bin/env python
2
3
"""
4
Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org)
5
See the file 'LICENSE' for copying permission
6
"""
7
8
from lib.core.data import logger
9
from lib.core.exception import SqlmapUnsupportedFeatureException
10
from plugins.generic.enumeration import Enumeration as GenericEnumeration
11
12
class Enumeration(GenericEnumeration):
13
def getPasswordHashes(self):
14
warnMsg = "on Snowflake it is not possible to enumerate the user password hashes"
15
logger.warning(warnMsg)
16
return {}
17
18
def getRoles(self, *args, **kwargs):
19
warnMsg = "on Snowflake it is not possible to enumerate the user roles"
20
logger.warning(warnMsg)
21
22
return {}
23
24
def searchDb(self):
25
warnMsg = "on Snowflake it is not possible to search databases"
26
logger.warning(warnMsg)
27
return []
28
29
def searchColumn(self):
30
errMsg = "on Snowflake it is not possible to search columns"
31
raise SqlmapUnsupportedFeatureException(errMsg)
32
33