在web服务中一般采用三层架构:浏览器+WEB服务器+数据库,由于WEB服务器编程漏洞,网络攻击将sql命令插入web表单中的输入域或页面请求查找字段,欺骗服务器执行SQL命令。
注入形式:
http://xxx.xxx.com/abc.asp?p=YY
执行注入:http://xxx.xxx.com/abc.asp?p=YY and user>0 可以获取用户名
执行注入:http://xxx.xxx.com/abc.asp?p=YY and (select pssword from login where user_name’admin’) >0 可以获取密码