if request("act")="删除" then if request.form("lid")="" then founderr=true Errmsg=Errmsg+" "+"<li>请指定相关事件。" else lid=replace(request.Form("lid"),"‘","") end if end if
if founderr then exit sub
if request("act")="删除" then conn.execute("delete from log where l_id in ("&lid&")")
当时我的心律就到了120,我不知道lid是xxxx);drop table admin;--时是怎样,上面那个replace是不是太轻率?马上我就想到可以给自己的论文里面加500字以上了(刚好我的论文也有关于SQL Injection的部分),于是我就在论文里面添了一段SQL Injection Without Quotation Mark,并在接下来的两天内好好的研究了一下。嗯,结果做了一个小的.asp,贴出来看看啊,反正大概的意思就是比如‘AB‘完全可以用char(65)+char(66)表示,大家有意见发到n.e.v.e.r@tom.com给我好了。