
预编译防止SQL注入
先简单了解一下SQL注入的「过程」。
比如一个「查询」功能,根据用户输入的id,查询用户名和密码。

后台的「SQL语句」是这样的
select *from user where id='1'
如果我们在「参数」中提交 payload
https://127.0.0.1/Less-1/?id=-1' union

先简单了解一下SQL注入的「过程」。
比如一个「查询」功能,根据用户输入的id,查询用户名和密码。

后台的「SQL语句」是这样的
select *from user where id='1'
如果我们在「参数」中提交 payload
https://127.0.0.1/Less-1/?id=-1' union
5273
1248
