Path: blob/master/plugins/dbms/cache/enumeration.py
2992 views
#!/usr/bin/env python12"""3Copyright (c) 2006-2025 sqlmap developers (https://sqlmap.org)4See the file 'LICENSE' for copying permission5"""67from lib.core.data import logger8from lib.core.settings import CACHE_DEFAULT_SCHEMA9from plugins.generic.enumeration import Enumeration as GenericEnumeration1011class Enumeration(GenericEnumeration):12def getCurrentDb(self):13return CACHE_DEFAULT_SCHEMA1415def getUsers(self):16warnMsg = "on Cache it is not possible to enumerate the users"17logger.warning(warnMsg)1819return []2021def getPasswordHashes(self):22warnMsg = "on Cache it is not possible to enumerate password hashes"23logger.warning(warnMsg)2425return {}2627def getPrivileges(self, *args, **kwargs):28warnMsg = "on Cache it is not possible to enumerate the user privileges"29logger.warning(warnMsg)3031return {}3233def getStatements(self):34warnMsg = "on Cache it is not possible to enumerate the SQL statements"35logger.warning(warnMsg)3637return []3839def getRoles(self, *args, **kwargs):40warnMsg = "on Cache it is not possible to enumerate the user roles"41logger.warning(warnMsg)4243return {}4445def getHostname(self):46warnMsg = "on Cache it is not possible to enumerate the hostname"47logger.warning(warnMsg)484950