Path: blob/master/plugins/dbms/spanner/enumeration.py
4907 views
#!/usr/bin/env python12"""3Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org)4See the file 'LICENSE' for copying permission5"""67from lib.core.data import logger8from lib.core.settings import SPANNER_DEFAULT_SCHEMA9from plugins.generic.enumeration import Enumeration as GenericEnumeration1011class Enumeration(GenericEnumeration):12def getCurrentDb(self):13return SPANNER_DEFAULT_SCHEMA1415def getCurrentUser(self):16warnMsg = "on Spanner it is not possible to enumerate the current user"17logger.warning(warnMsg)1819def isDba(self, user=None):20warnMsg = "on Spanner it is not possible to test if current user is DBA"21logger.warning(warnMsg)2223def getUsers(self):24warnMsg = "on Spanner it is not possible to enumerate the users"25logger.warning(warnMsg)2627return []2829def getPasswordHashes(self):30warnMsg = "on Spanner it is not possible to enumerate the user password hashes"31logger.warning(warnMsg)3233return {}3435def getRoles(self, *args, **kwargs):36warnMsg = "on Spanner it is not possible to enumerate the user roles"37logger.warning(warnMsg)3839return {}4041def getPrivileges(self, *args, **kwargs):42warnMsg = "on Spanner it is not possible to enumerate the user privileges"43logger.warning(warnMsg)4445return {}4647def getHostname(self):48warnMsg = "on Spanner it is not possible to enumerate the hostname"49logger.warning(warnMsg)505152