Skip to content

Commit 76b1029

Browse files
committed
update RMIRefListener2
1 parent bf95d4a commit 76b1029

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/ysoserial/exploit/PayloadHTTPServer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class PayloadHTTPServer implements Runnable{
2121
private int port;
2222
private String classname;
2323
private String command;
24-
private HttpServer server;
2524

2625
public PayloadHTTPServer(int port, String classname, String command) {
2726
this.port = port;
@@ -47,7 +46,7 @@ public static void main(String[] args) {
4746
public void run(){
4847
try {
4948
System.err.println("* Opening Payload HTTPServer on " + port);
50-
server = HttpServer.create(new InetSocketAddress(port), 0);
49+
HttpServer server = HttpServer.create(new InetSocketAddress(port), 0);
5150
server.createContext("/"+classname+".class", new PayloadHandler(classname, command));
5251
server.setExecutor(null);
5352
server.start();

0 commit comments

Comments
 (0)