SQL注入分类,一看你就明白了
-
单引号字符型注入 -
双引号字符型注入 -
带有括号的注入
select * from user where id = 1;
select * from user
where username = 'zhangsan' and password = '123abc';
select * from user where username = 'zhangsan';
select * from user where username = "zhangsan";
select * from user where id = (1);
select * from user where id = ((1));
包裹多个括号……
select * from user where username = ('zhangsan');
select * from user where username = (('zhangsan'));
包裹多个括号……
select * from user where username = ("zhangsan");
select * from user where username = (("zhangsan"));
包裹多个括号……
GET注入:使用get请求提交数据,比如 xxx.php?id=1.
POST注入:使用post请求提交数据,比如表单。
Cookie注入:使用Cookie的某个字段提交数据,比如在Cookie中保存用户信息。
作者:士别三日wyx
原文:https://blog.csdn.net/wangyuxiang946/article/details/122996953
往期推荐