Path: blob/master/plugins/dbms/presto/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 plugins.generic.enumeration import Enumeration as GenericEnumeration910class Enumeration(GenericEnumeration):11def getBanner(self):12warnMsg = "on Presto it is not possible to get the banner"13logger.warning(warnMsg)1415return None1617def getCurrentDb(self):18warnMsg = "on Presto it is not possible to get name of the current database (schema)"19logger.warning(warnMsg)2021def isDba(self, user=None):22warnMsg = "on Presto it is not possible to test if current user is DBA"23logger.warning(warnMsg)2425def getUsers(self):26warnMsg = "on Presto it is not possible to enumerate the users"27logger.warning(warnMsg)2829return []3031def getPasswordHashes(self):32warnMsg = "on Presto it is not possible to enumerate the user password hashes"33logger.warning(warnMsg)3435return {}3637def getPrivileges(self, *args, **kwargs):38warnMsg = "on Presto it is not possible to enumerate the user privileges"39logger.warning(warnMsg)4041return {}4243def getRoles(self, *args, **kwargs):44warnMsg = "on Presto it is not possible to enumerate the user roles"45logger.warning(warnMsg)4647return {}4849def getHostname(self):50warnMsg = "on Presto it is not possible to enumerate the hostname"51logger.warning(warnMsg)5253def getStatements(self):54warnMsg = "on Presto it is not possible to enumerate the SQL statements"55logger.warning(warnMsg)5657return []585960