Skip to content

Commit

Permalink
added limited support for zlib/DEFLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
dnet committed Jan 31, 2018
1 parent 2fe4546 commit 4947250
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.concurrent.TimeUnit;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import java.util.zip.DeflaterOutputStream;
import java.net.URLEncoder;

import javax.swing.BoxLayout;
Expand Down Expand Up @@ -153,6 +154,12 @@ protected OutputStream getCompressor(OutputStream os) throws IOException {
return new GZIPOutputStream(os);
}
},
ZLIB {
public String toString() { return "Compress using zlib"; }
protected OutputStream getCompressor(OutputStream os) throws IOException {
return new DeflaterOutputStream(os);
}
},
BASE64 {
public String toString() { return "Encode using Base64"; }
public byte[] transform(byte[] input) throws IOException { return Base64.encodeBase64(input); }
Expand Down Expand Up @@ -348,6 +355,7 @@ public void registerExtenderCallbacks(final IBurpExtenderCallbacks callbacks)
stdout.println("Base64");
stdout.println("Ascii HEX");
stdout.println("Base64 Gzip");
stdout.println("Base64 Zlib (for attack only)");
stdout.println("Gzip");
stdout.println("");
stdout.println("Github: https://github.com/federicodotta/Java-Deserialization-Scanner");
Expand Down

0 comments on commit 4947250

Please sign in to comment.