Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/plugins/dbms/derby/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.common import singleTimeWarnMessage
9
from lib.core.data import logger
10
from plugins.generic.enumeration import Enumeration as GenericEnumeration
11
12
class Enumeration(GenericEnumeration):
13
def getPasswordHashes(self):
14
warnMsg = "on Apache Derby it is not possible to enumerate password hashes"
15
logger.warning(warnMsg)
16
17
return {}
18
19
def getStatements(self):
20
warnMsg = "on Apache Derby it is not possible to enumerate the SQL statements"
21
logger.warning(warnMsg)
22
23
return []
24
25
def getPrivileges(self, *args, **kwargs):
26
warnMsg = "on Apache Derby it is not possible to enumerate the user privileges"
27
logger.warning(warnMsg)
28
29
return {}
30
31
def getRoles(self, *args, **kwargs):
32
warnMsg = "on Apache Derby it is not possible to enumerate the user roles"
33
logger.warning(warnMsg)
34
35
return {}
36
37
def getHostname(self):
38
warnMsg = "on Apache Derby it is not possible to enumerate the hostname"
39
logger.warning(warnMsg)
40
41
def getBanner(self):
42
warnMsg = "on Apache Derby it is not possible to enumerate the banner"
43
singleTimeWarnMessage(warnMsg)
44
45