| 以下是引用片段: book_user=request.form("book_user") book_contact=request.form("book_contact") book_content=request.form("book_content") if sortid="" or tableid="" or ypid="" then response.write "<script>alert('未知错误');window.close();</Script>" response.End() end if if book_user="" or len(book_user)<2 or len(book_user)>16 then response.write "<script>alert('反馈出错,下面是产生错误的可能原因:\n\n·请输入 2-16 位字符的用户名!');window.close();</Script>" response.End() end if if book_contact="" or len(book_contact)<5 or len(book_contact)>40 then response.write "<script>alert('反馈出错,下面是产生错误的可能原因:\n\n·请输入 5-40 位字符的联系方式!');window.close();</Script>" response.End() end if if book_content="" or len(book_content)<5 or len(book_content)>100 then response.write "<script>alert('反馈出错,下面是产生错误的可能原因:\n\n·请输入 10-100 位字符的反馈内容!');window.close();</Script>" response.End() end if set rs=Server.CreateObject("Adodb.Recordset") sql="select * from SMT_leaveword" rs.open sql,conn,1,3 rs.addnew rs("SMT_book_user")=book_user rs("SMT_book_contact")=book_contact rs("SMT_book_content")=book_content '就用它吧,100个字符满够用了 rs("SMT_book_sort")=sortid rs("SMT_book_table")=tableid rs("SMT_book_ypid")=ypid rs.update rs.close set rs=nothing response.write "<script>alert('反馈成功,谢谢您的参与!');window.close();</Script>" response.End() %> |
可以看出就是做了一些判断是否为空,和字数上的限制,不过book_content限制提交字数是100个,这对于我们来说已经足够了。
首先我们注册个用户,在意见反馈里填入跨站语句,如图1所示,这样直接在后台就会执行,如图2所示。

这样当然我们就可以做很多事情了,比如说像添加个管理员,不过以前已经写过所以就不在重复了,这个后台有数据库备份功能,我们要做的是利用管理员身份替我们备份出一个WEBSHELL来,
| 利用XSS渗透校内网的过程详解 | 01-28 | |
| Mysql5注射技巧总结 | 01-28 | |
| 对红色黑客联盟的一次检测 | 01-28 | |
| SQL注入高级技巧nowthk篇 | 01-28 | |
| 酷蝶XP留言簿的跨站利用 | 01-28 | |
| 跨站跨出WEBSHELL---网域高科行业 | 01-28 | |
| 黑客如何利用文件包含漏洞进行网 | 01-24 | |
| Dvbbs8.1 0DAY(通杀access和mssq | 01-09 | |
| 辽宁文学艺术网的沦陷-eWebEdit | 01-09 | |
| 入侵网站拿下服务器的实战演示 | 01-09 | |
| 渗透入侵土耳其XXX网站!~ | 12-21 | |
| BBSGood.Speed Version 4.0注入漏 | 12-21 | |