Skip to content

Commit

Permalink
update RMIRefListener2
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1t3p1g committed Feb 5, 2020
1 parent bf95d4a commit 76b1029
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/ysoserial/exploit/PayloadHTTPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 76b1029

Please sign in to comment.