Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/plugins/dbms/cache/enumeration.py
2992 views
1
#!/usr/bin/env python
2
3
"""
4
Copyright (c) 2006-2025 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.settings import CACHE_DEFAULT_SCHEMA
10
from plugins.generic.enumeration import Enumeration as GenericEnumeration
11
12
class Enumeration(GenericEnumeration):
13
def getCurrentDb(self):
14
return CACHE_DEFAULT_SCHEMA
15
16
def getUsers(self):
17
warnMsg = "on Cache it is not possible to enumerate the users"
18
logger.warning(warnMsg)
19
20
return []
21
22
def getPasswordHashes(self):
23
warnMsg = "on Cache it is not possible to enumerate password hashes"
24
logger.warning(warnMsg)
25
26
return {}
27
28
def getPrivileges(self, *args, **kwargs):
29
warnMsg = "on Cache it is not possible to enumerate the user privileges"
30
logger.warning(warnMsg)
31
32
return {}
33
34
def getStatements(self):
35
warnMsg = "on Cache it is not possible to enumerate the SQL statements"
36
logger.warning(warnMsg)
37
38
return []
39
40
def getRoles(self, *args, **kwargs):
41
warnMsg = "on Cache it is not possible to enumerate the user roles"
42
logger.warning(warnMsg)
43
44
return {}
45
46
def getHostname(self):
47
warnMsg = "on Cache it is not possible to enumerate the hostname"
48
logger.warning(warnMsg)
49
50