Burp Suite User Forum

Create new post

Extension HttpRequest persistence

Hazem | Last updated: Sep 14, 2023 04:20AM UTC

I'm building an extension that provides functionality similar to burp repeater, and I'm trying to save the extension's "state" to the project file, including configurations -which I have managed to do successfully- and request, which are sent to the extension through menu items, so that when burp restarts, the extension can restore its state from the persisted data and re-build all the tabs with the contained requests and responses. How can this be done?

Hannah, PortSwigger Agent | Last updated: Sep 14, 2023 09:23AM UTC

Hi You can save data to a project file using the "PersistedObject" interface. You can access this by using "MontoyaApi.persistence().extensionsData()". There are a variety of different utility methods for saving different types of data here. Please note that PersistedList can be used in a similar way to a regular list - you don't have to set the list again with any changes, you can simply add and remove items from the list.

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