Burp Suite User Forum

Login to post

Is it possible to add new cookies and completely overwrite the cookie jar with an extension?

Vaibhav | Last updated: Jun 01, 2020 04:32PM UTC

Looking to create an extension where one can open cookie data from a file, and load all of that into the cookie jar. Is that possible with Burp's APIs?

Hannah, PortSwigger Agent | Last updated: Jun 02, 2020 07:50AM UTC

Have you had a look at the ICookie interface, as well as the IParameter interface? You can use IExtensionHelpers add/update parameter functions to add or change the cookie parameter value. You can find the full Extender API documentation here: https://portswigger.net/burp/extender/api/ You could also try looking at how existing extensions have implemented the functionality you are looking for. All BApp Store extensions are publicly available on our GitHub: https://github.com/portswigger

You need to Log in to post a reply. Or register here, for free.