Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/plugins/dbms/sqlite/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 lib.core.exception import SqlmapUnsupportedFeatureException
10
from plugins.generic.enumeration import Enumeration as GenericEnumeration
11
12
class Enumeration(GenericEnumeration):
13
def getCurrentUser(self):
14
warnMsg = "on SQLite it is not possible to enumerate the current user"
15
logger.warning(warnMsg)
16
17
def getCurrentDb(self):
18
warnMsg = "on SQLite it is not possible to get name of the current database"
19
logger.warning(warnMsg)
20
21
def isDba(self, user=None):
22
warnMsg = "on SQLite the current user has all privileges"
23
logger.warning(warnMsg)
24
25
return True
26
27
def getUsers(self):
28
warnMsg = "on SQLite it is not possible to enumerate the users"
29
logger.warning(warnMsg)
30
31
return []
32
33
def getPasswordHashes(self):
34
warnMsg = "on SQLite it is not possible to enumerate the user password hashes"
35
logger.warning(warnMsg)
36
37
return {}
38
39
def getPrivileges(self, *args, **kwargs):
40
warnMsg = "on SQLite it is not possible to enumerate the user privileges"
41
logger.warning(warnMsg)
42
43
return {}
44
45
def getDbs(self):
46
warnMsg = "on SQLite it is not possible to enumerate databases (use only '--tables')"
47
logger.warning(warnMsg)
48
49
return []
50
51
def searchDb(self):
52
warnMsg = "on SQLite it is not possible to search databases"
53
logger.warning(warnMsg)
54
55
return []
56
57
def searchColumn(self):
58
errMsg = "on SQLite it is not possible to search columns"
59
raise SqlmapUnsupportedFeatureException(errMsg)
60
61
def getHostname(self):
62
warnMsg = "on SQLite it is not possible to enumerate the hostname"
63
logger.warning(warnMsg)
64
65
def getStatements(self):
66
warnMsg = "on SQLite it is not possible to enumerate the SQL statements"
67
logger.warning(warnMsg)
68
69
return []
70
71