(IHttpRequestResponse httpRequestResponse, String codeString , String selectString)
| 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 | } |
no test coverage detected