Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/plugins/dbms/spanner/enumeration.py
4907 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.settings import SPANNER_DEFAULT_SCHEMA
10
from plugins.generic.enumeration import Enumeration as GenericEnumeration
11
12
class Enumeration(GenericEnumeration):
13
def getCurrentDb(self):
14
return SPANNER_DEFAULT_SCHEMA
15
16
def getCurrentUser(self):
17
warnMsg = "on Spanner it is not possible to enumerate the current user"
18
logger.warning(warnMsg)
19
20
def isDba(self, user=None):
21
warnMsg = "on Spanner it is not possible to test if current user is DBA"
22
logger.warning(warnMsg)
23
24
def getUsers(self):
25
warnMsg = "on Spanner it is not possible to enumerate the users"
26
logger.warning(warnMsg)
27
28
return []
29
30
def getPasswordHashes(self):
31
warnMsg = "on Spanner it is not possible to enumerate the user password hashes"
32
logger.warning(warnMsg)
33
34
return {}
35
36
def getRoles(self, *args, **kwargs):
37
warnMsg = "on Spanner it is not possible to enumerate the user roles"
38
logger.warning(warnMsg)
39
40
return {}
41
42
def getPrivileges(self, *args, **kwargs):
43
warnMsg = "on Spanner it is not possible to enumerate the user privileges"
44
logger.warning(warnMsg)
45
46
return {}
47
48
def getHostname(self):
49
warnMsg = "on Spanner it is not possible to enumerate the hostname"
50
logger.warning(warnMsg)
51
52