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

How to set Resource Pool value from BURP Rest-API

Khaled | Last updated: Nov 11, 2021 12:24AM UTC

hello everyone , I'm using burpsuite RestAPI for my automation but sometimes i need to set resource_pool to low number for avoid the target requests limit protections so after i choice resource_pool and add any integer value i always get 400 error here is my curl command curl -vgw "\n" -X POST 'http://localhost:1337/v0.1/scan' -d '{"resource_pool":"5","urls":["http://testphp.vulnweb.com/"]}' response: 400 { "type": "ClientError", "error": "Unknown resource pool '5'" } any suggestions for fix this ? best regards khaled

Ben, PortSwigger Agent | Last updated: Nov 12, 2021 02:00PM UTC

Hi Khaled, You should be able to utilise an existing, custom resource pool (that you have already created in Burp Professional) by supplying the name of the pool in the 'resource_pool' string value. So something like the following would initiate a scan using an existing, custom resource pool entitled 'NewPool": curl -vgw "\n" -X POST 'http://127.0.0.1:1337/v0.1/scan' -d '{"resource_pool":"NewPool","urls":["https://portswigger-labs.net"]}'

Khaled | Last updated: Nov 13, 2021 03:02AM UTC

Thanks for this informations, but is possible to save resource_pool for use after restart?

Ben, PortSwigger Agent | Last updated: Nov 15, 2021 02:05PM UTC