mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Bug fix to properly identify if current user is DBA (--is-dba) on MySQL
This commit is contained in:
@@ -129,7 +129,13 @@ class Enumeration:
|
||||
infoMsg = "testing if current user is DBA"
|
||||
logger.info(infoMsg)
|
||||
|
||||
query = agent.forgeCaseStatement(queries[kb.dbms].is_dba.query)
|
||||
if kb.dbms == DBMS.MYSQL:
|
||||
self.getCurrentUser()
|
||||
query = queries[kb.dbms].is_dba.query % kb.data.currentUser.split("@")[0]
|
||||
else:
|
||||
query = queries[kb.dbms].is_dba.query
|
||||
|
||||
query = agent.forgeCaseStatement(query)
|
||||
|
||||
kb.data.isDba = inject.getValue(query, unpack=False, charsetType=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user