Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

buildParameter not working

vino Aug 08, 2019 08:46PM UTC

I built the HttpRequest using buildHttpMessage method and trying to add Cookie and Body param using LegacyBurpExtender.getInstance().getHelpers().buildParameter and addParameter and updateParameter methods and it is not working. Below is the code snippet,
buildRequest = helpers.buildHttpMessage(headers,bodyObject.toString().getBytes());
IParameter testParam = helpers.buildParameter("test","testing",PARAM_BODY); buildRequest = helpers.updateParameter(buildRequest, testParam);
String requestString = LegacyBurpExtender.getInstance().getHelpers().bytesToString(buildRequest);

When I convert bytes to string I dont see new body param. I tried with update Param as well.

Liam Tai-Hogan Aug 09, 2019 01:45PM UTC Support Center agent

We have a bit of a backlog in terms of Extensions issues. Please accept our apologies, we’ll get back to you as soon as we can.

Post Your public answer

Your name
Your email address