up.jsp
JSP webshell file uploader
Bytes("JSP uploader which gets input, writes files and contains \"upload\"")Web Shell - file up.jsp
SHA-2567439d1c0b9994b74db771d9568e3b845630e3497aab71f12cc3af954e7522e45
MaleculeTh
Evidence
1<jsp:useBean id="prop" scope="page" class="java.util.Properties" />
2<%@ page import="java.io.*,java.util.*,javax.servlet.*" %>
3<%
4//
5// JSP_KIT
6//
7// up.jsp = File Upload (unix)
8//
9// by: Unknown
⋯8 lines
18</html>
19<%!
20public String getBoundary(HttpServletRequest request,Properties prop) throws ServletException,IOException{
21 String boundary = null;
22 Enumeration enum = request.getHeaderNames();
⋯4 lines
⋯5 lines
49<%
50String DPATH = "/tmp/";
51int ROUGHSIZE = 640000; // BUG: Corta el fichero si es mayor de 640Ks
52int MAXSIZE = 10; // 10 Mega Byte
53String boundary = getBoundary(request,prop);
⋯9 lines