mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor update regarding --current-db on Oracle
This commit is contained in:
@@ -104,17 +104,13 @@ class Dump:
|
||||
self.string("current user", data)
|
||||
|
||||
def currentDb(self,data):
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MAXDB, DBMS.ORACLE):
|
||||
if Backend.getIdentifiedDbms() == DBMS.MAXDB:
|
||||
self.string("current database (no practical usage on %s)" % Backend.getIdentifiedDbms(), data)
|
||||
elif Backend.getIdentifiedDbms() == DBMS.ORACLE:
|
||||
self.string("current schema (equivalent to database on %s)" % Backend.getIdentifiedDbms(), data)
|
||||
else:
|
||||
self.string("current database", data)
|
||||
|
||||
if Backend.getIdentifiedDbms() in (DBMS.ORACLE):
|
||||
warnMsg = "on %s you have to use switch '--current-user' to " % Backend.getIdentifiedDbms()
|
||||
warnMsg += "retrieve current schema name which can be used "
|
||||
warnMsg += "as an equivalent to database name (-D) in further runs"
|
||||
logger.warning(warnMsg)
|
||||
|
||||
def dba(self,data):
|
||||
self.string("current user is DBA", data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user