mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-03 15:01:13 +00:00
Fix Oracle current_db query to return actual database name
This commit is contained in:
parent
e48cce3fa3
commit
5a638ec756
1 changed files with 2 additions and 1 deletions
|
|
@ -250,7 +250,8 @@
|
|||
NOTE: current physical DB but not usable for enumeration
|
||||
<current_db query="SELECT SYS.DATABASE_NAME FROM DUAL"/>
|
||||
-->
|
||||
<current_db query="SELECT USER FROM DUAL"/>
|
||||
<!-- ORA_DATABASE_NAME works for any user in Oracle 12c+; fallback to USER for older versions -->
|
||||
<current_db query="SELECT ORA_DATABASE_NAME FROM DUAL" query2="SELECT USER FROM DUAL"/>
|
||||
<!--
|
||||
NOTE: in Oracle to check if the session user is DBA you can use:
|
||||
SELECT USERENV('ISDBA') FROM DUAL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue