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

How to Use Macros?

Manish Rohilla Dec 02, 2019 10:20AM UTC

Hello Support,

I am in a situation where I need to automate my testing using Macros. I have a JSON POST request which submits the data on the server but I can't repeat the same request again due to the key-value used in the request. That key value can be used only once and in response, I only receive true or false. For each request, the application generates a new key and makes difficult to repeat the same request.
Can you please suggest some workaround to it?

Request Parameter: {"Key":"id-12f824e0-14e5-11ea-a280-d31f8e5cc2b8","messageName":"dataSend"}

Response: {"success":true,"message":"Success","data":"","error":{}}


Hannah Law Dec 02, 2019 11:46AM UTC Support Center agent

Hi Manish

The key-values that you are using to make your request, are you generating these yourself or using an external program to create them?


Manish Rohilla Dec 02, 2019 12:17PM UTC
It is generated by the application. When I submit the form this value automatically created.

Hannah Law Dec 03, 2019 11:25AM UTC Support Center agent

Hi Manish

I’m assuming you’ve read our documentation on creating macros (https://portswigger.net/burp/documentation/desktop/options/sessions/macro-editor).

Burp Suite should use its parameter handling features to automatically update the response. If that is not working, then you may need to set a custom parameter location. You can repeat the automatic analysis using the ‘Re-analyze macro’ button.


Post Your public answer

Your name
Your email address
Answer