Burp Suite User Forum

Create new post

How to Use Macros?

Manish | Last updated: 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, PortSwigger Agent | Last updated: Dec 02, 2019 10:47AM UTC

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?

Burp User | Last updated: Dec 02, 2019 12:17PM UTC

It is generated by the application. When I submit the form this value automatically created.

Hannah, PortSwigger Agent | Last updated: Dec 02, 2019 01:47PM UTC

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.

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