Burp Suite User Forum

Create new post

How can i use global variable like fucntionality in burp repeater

Naman | Last updated: May 23, 2021 11:27AM UTC

I have a request in repeater and i want to store some values from this request as a global variable so that i can use them in other requests. it could be like in a key-value pair and stored in a seprate tab of extension in burp suite. like i can add as many variable in the list and use them in any request with some sytax like string literal like used token in url path below. GET /complete/$token HTTP/2 Host: www.google.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Te: trailers Connection: close

Uthman, PortSwigger Agent | Last updated: May 24, 2021 08:45AM UTC

Hi Naman, You can use one of the following extensions to achieve this: - Authentication Token Obtain and Replace - CSTC, Modular HTTP Manipulator - Auto Repeater

0xceba | Last updated: Mar 16, 2024 12:51AM UTC

The extensions recommended by Uthman can be used to store and replace variables in requests, but that's not their primary purpose so using them for your use case might be overkill. I created the extension Burp Variables to port just variable support into Burp. You can download it at https://github.com/0xceba/burp_variables

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.