Skip to content

Commit

Permalink
Handle params called '['
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Dec 17, 2020
1 parent 386a03f commit fbce03f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/burp/Keysmith.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ static ArrayList<String> getAllKeys(byte[] resp, HashMap<String, String> witness
}

if(Utilities.isResponse(resp)) {

return getHtmlKeys(Utilities.getBody(resp));
}
else {
Expand Down Expand Up @@ -71,6 +70,10 @@ static String parseParam(String param) {
parsed.append(e.replace("]", ""));
}

if (parsed.length() == 0) {
return "";
}

return parsed.toString().substring(1);
}

Expand Down

0 comments on commit fbce03f

Please sign in to comment.