Burp Suite User Forum

Create new post

Pre-test and Post-Test Script like postman

Alvin | Last updated: Mar 28, 2021 04:12AM UTC

Hi there, Does burpsuite have a way to do pre-test and post-test script like postman does? You can use pre-request scripts in Postman to execute JavaScript before a request runs. By including code in the Pre-request Script tab for a request, collection, or folder, you can carry out pre-processing such as setting variable values, parameters, headers, and body data. You can also use pre-request scripts for debugging code, for example by logging output to the console.

Uthman, PortSwigger Agent | Last updated: Mar 29, 2021 08:29AM UTC

Unfortunately, pre/post-test scripts like the ones available in postman are not available in Burp.

However, have you checked out any extensions on the BApp Store that could perform some processing on requests before and after they are sent?

AssistantX | Last updated: Mar 30, 2021 01:46AM UTC

You can use Reshaper from the BApp Store (https://portswigger.net/bappstore/7bcec7656b5746e9a85c427f243e6d5a) to do the things you want. You can create rules for both before a request and after a response. These can include running JavaScript. Here (https://synfron.github.io/ReshaperForBurp/Examples.html) has examples of rules you can set up.

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