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