Path: blob/master/plugins/dbms/sqlite/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.exception import SqlmapUnsupportedFeatureException9from plugins.generic.enumeration import Enumeration as GenericEnumeration1011class Enumeration(GenericEnumeration):12def getCurrentUser(self):13warnMsg = "on SQLite it is not possible to enumerate the current user"14logger.warning(warnMsg)1516def getCurrentDb(self):17warnMsg = "on SQLite it is not possible to get name of the current database"18logger.warning(warnMsg)1920def isDba(self, user=None):21warnMsg = "on SQLite the current user has all privileges"22logger.warning(warnMsg)2324return True2526def getUsers(self):27warnMsg = "on SQLite it is not possible to enumerate the users"28logger.warning(warnMsg)2930return []3132def getPasswordHashes(self):33warnMsg = "on SQLite it is not possible to enumerate the user password hashes"34logger.warning(warnMsg)3536return {}3738def getPrivileges(self, *args, **kwargs):39warnMsg = "on SQLite it is not possible to enumerate the user privileges"40logger.warning(warnMsg)4142return {}4344def getDbs(self):45warnMsg = "on SQLite it is not possible to enumerate databases (use only '--tables')"46logger.warning(warnMsg)4748return []4950def searchDb(self):51warnMsg = "on SQLite it is not possible to search databases"52logger.warning(warnMsg)5354return []5556def searchColumn(self):57errMsg = "on SQLite it is not possible to search columns"58raise SqlmapUnsupportedFeatureException(errMsg)5960def getHostname(self):61warnMsg = "on SQLite it is not possible to enumerate the hostname"62logger.warning(warnMsg)6364def getStatements(self):65warnMsg = "on SQLite it is not possible to enumerate the SQL statements"66logger.warning(warnMsg)6768return []697071