Một số lưu ý cho ae khi khai thác lỗi SQL
++Tìm site lỗi++
-Thêm ' vào nếu có lỗi thì biết liền nhé
-Thêm ' vào ,nếu web trả về trang trắng thì nguy cơ dính lỗi cao
- Thêm and 1=1 và and 1=0 mà trang trả về trang trắng hoạc 1 phần>>lỗi
++Khai thác site++
- Khi query 1 số site chặn các hàm union,select,convert...thì khi query nó trả về trang trắng, lúc này ta thay đổi 1 số chữ Hoa, thường xen kẽ nhau: UniON, SeLECt...
- Khi query cũng có 1 số site trả về trang trắng, thì ta nhìn kỹ trên site nha,kể cả title site.Nếu ko thấy ae view source sẽ thấy
- Nếu mysql version <5 thì phải đoán table nhé, >5 thì dùng group_concat(table_name)...from infor....
- 1 số query table_name không hiện ra , ta dùng unhehe
group_concat(table_name))
- Khi query nó trả về thế này thì ta thay thế union thành /*Union */ Hoặc /*!Union*/
Forbidden
You don't have permission to access /news.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Hoặc
Not Acceptable
An appropriate representation of the requested resource / could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request
-Nếu query nó ra thế này thì làm sao:
406 Not Acceptable
This request is not acceptable Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
Cái này rất khó-đòi hỏi tìm tòi: ta thay khoang trong space = %0A, trang web sẽ hiện ra, nhưng cột số bị lỗi hiện ra trên site ko thấy, do đó ta phải view source và tìm ra cái số bị lỗi
link tham khảoem xong rồi thay space = %0A thử xem
http://www.mp3hungam...lbums.php?id=-3 union select 1,2,3--