MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / getHttpRequestBody

Method getHttpRequestBody

src/Utils/ClickEncodeDecode.java:60–72  ·  view source on GitHub ↗
(IHttpRequestResponse httpRequestResponse, String codeString , String selectString)

Source from the content-addressed store, hash-verified

58 }
59
60 private static byte[] getHttpRequestBody(IHttpRequestResponse httpRequestResponse, String codeString , String selectString) {
61 byte[] request = httpRequestResponse.getRequest();
62 IRequestInfo requestInfo = BurpExtender.helpers.analyzeRequest(request);
63
64 int bodyOffset = requestInfo.getBodyOffset();
65 byte[] httpBody = Arrays.copyOfRange(request, bodyOffset, request.length);
66
67 BurpExtender.stdout.println(new String(httpBody));
68 String code_body = new String(httpBody);
69 code_body = code_body.replace(codeString,selectString);
70
71 return code_body.getBytes();
72 }
73}

Callers 2

DecodeMethod · 0.95
EncodeMethod · 0.95

Calls 2

getRequestMethod · 0.80
getBodyOffsetMethod · 0.80

Tested by

no test coverage detected