/** * URL decode the input. * @param input The plain data. * @return The decoded data. */ @Override public String decode(String input) { return getHelpers().urlDecode(input); }
/** * URL decode the input. * @param input The plain data. * @return The decoded data. */ @Override public String decode(String input) { return getHelpers().urlDecode(input); }
private void checkReflection(IParameter param, String responseString, IExtensionHelpers helpers) { if(param.getValue().length()>2) { if (responseString.contains(param.getValue())) { reflectedCount += 1; } String decodedValue = helpers.urlDecode(param.getValue()); if (!decodedValue.equals(param.getValue()) && responseString.contains(decodedValue)) { decodedReflectedCount += 1; } } }
/** * URL decode input. * @param input The plain data. * @return The decoded data. */ @Override public String decode(String input) { if(Encoding.isURLEncoded(input)){ return super.getCallbacks().getHelpers().urlDecode(input); } return input; }
/** * URL decode input. * @param input The plain data. * @return The decoded data. */ @Override public String decode(String input) { if(Encoding.isURLEncoded(input)){ return super.getCallbacks().getHelpers().urlDecode(input); } return input; }
public LaudanumResponse(IBurpExtenderCallbacks callbacks, byte[] responseBytes) { IResponseInfo responseInfo = callbacks.getHelpers().analyzeResponse(responseBytes); byte[] body = Arrays.copyOfRange(responseBytes, responseInfo.getBodyOffset(), responseBytes.length); String[] outputParts = callbacks.getHelpers().bytesToString(body).split("&"); for (String part : outputParts) { String[] split = part.split("="); if (split.length == 2) { params.put(split[0].trim(), callbacks.getHelpers().urlDecode(split[1])); //callbacks.printOutput("Setting: " + part); //callbacks.printOutput("*** NAME = '" + split[0] + "'"); //callbacks.printOutput("*** VALUE = "+split[1]); //callbacks.printOutput("*** DECODED VALUE = "+callbacks.getHelpers().urlDecode(split[1])); } } if (params.size() < 2) { params.put("stderr", callbacks.getHelpers().urlDecode(callbacks.getHelpers().bytesToString(body))); // if we can't process the response, spit out what we got. } }
/** * Decode the JWT String. * @param input The data to decode. * @return The decoded String. */ public String[] decode(String input){ try{ if(Encoding.isURLEncoded(input)){ input = helpers.urlDecode(input); } if(Encoding.isBase64Encoded(input)){ input = helpers.bytesToString(helpers.base64Decode(input)); } String[] jwt_list = input.split("\\."); if(jwt_list.length == 3){ String[] tmp = {"","",""}; Decoder b64 = Base64.getDecoder(); for(int i = 0; i<2; i++){ tmp[i] = helpers.bytesToString(b64.decode(jwt_list[i])); } tmp[2] = jwt_list[2]; return tmp; } } catch(Exception e){ Logging.getInstance().log(getClass(), e); } return null; }
Matcher matcher = sqlQueryRule.matcher(helpers.urlDecode(reqBody));
String output = callbacks.getHelpers().urlDecode(input); if (!output.equals(input)) { log.append("\nURL Decode -> ");
rawEditor.clearCheckBoxes(); if(Encoding.isURLEncoded(samlParam)) { samlParam = helpers.urlDecode(samlParam); rawEditor.getUrlCheckBox().setSelected(true); decURLActive = true;
byte[] urlDecode = helpers.urlDecode(baseRequestResponse.getRequest());
/** * Decode the JSON String. * @param input The data to decode. * @return The decoded String. */ public String decode(String input){ if(Encoding.isURLEncoded(input)){ input = helpers.urlDecode(input); } if(Encoding.isBase64Encoded(input)){ input = helpers.bytesToString(helpers.base64Decode(input)); } if(Encoding.isJSON(input)){ return input; } return null; } }