The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

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