ctf show web 入门172

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’ 是为了“精准定位”即使不加也不会造成影响