Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
Fixed payload definition to ensure that payloads don't include traili…
Browse files Browse the repository at this point in the history
…ng \r that was breaking requests
  • Loading branch information
forced-request committed Sep 15, 2014
1 parent 8f7f266 commit d47a8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions burp-extender/src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public Component getUiComponent() {
public String[] fetchRequestVals(byte[] intruderRequest) {
String request = this.helpers.bytesToString(intruderRequest);

String urlPattern = "(GET|POST) (.*) ";
String urlPattern = "(GET|POST) (.*) H";
String hostPattern = "Host: (.*)";
String cookiePattern = "[C|c]ookie: (.*)";
Pattern url = Pattern.compile(urlPattern);
Expand Down Expand Up @@ -451,7 +451,7 @@ public void run() {
*/
String payloads = "";
for (byte[] bs:BurpExtender.PAYLOADS) {
payloads += new String(bs) + "\r\n";
payloads += new String(bs) + "\n";
}

BurpExtender.this.attackStringsTextarea = new JTextArea(30, 50);
Expand Down

0 comments on commit d47a8e2

Please sign in to comment.