正常的SQL是:
select * from post where id = '10';
这里是注入的点:
10" union select id,username,salt,password,5 from user where id="2
对注入的内容进行转义后:
select * from post where id = '10\" union select id,username,salt,password,5 from user where id=\"2'
不懂为啥能查询出数据?
jeck猫
墨色风雨