Burp community forum

Post request macro ingesting parameters from current request's JSON response?

Ryan | Last updated: Aug 09, 2019 05:02PM UTC

I have a scenario where I am trying to take the output from an initial request's response and feed it into a second request. This can be done with traditional PARAM_BODY and PARAM_URL parameters using a macro (pre or post) but how would I go about this when the initial request's response returns JSON (or XML)? Been working on this and the only way to pull this off seems to be an extension that builds a request and takes the place of one of the two requests. I'm assuming that the only way to pull the values from any resulting JSON or XML is to use bytesToString and perform a regex search. Is this an incorrect line of thinking? Is there an easier way?

Liam, PortSwigger Agent | Last updated: Aug 12, 2019 10:06AM UTC

Thanks for this request. We've added a ticket to our development backlog to consider adding this feature.

You need to Log in to post a reply. Or register here, for free.