Burp Suite User Forum

Saving HttpRequestResponse to file

JP | Last updated: Oct 30, 2018 09:03PM UTC

I noticed that there's a method called saveBuffersToTempFiles() that says that it allows saving of HttpRequestResponse objects to a file. Is there anymore information on how to use this? I haven't been able to successfully use it. Is there an alternative way to save the state of extensions using this method or a less hacky way without using addToSiteMap()? https://portswigger.net/burp/extender/api/burp/IBurpExtenderCallbacks.html#saveBuffersToTempFiles(burp.IHttpRequestResponse)

PortSwigger Agent | Last updated: Oct 31, 2018 08:24AM UTC

What trouble are you having using it? It should transparently save the request and response into a project file, and it works for me.

Burp User | Last updated: Oct 31, 2018 04:27PM UTC

I'm using the method, but I don't see the temporary file that gets made. Or do I manually have to write to a file?

Burp User | Last updated: Oct 31, 2018 05:55PM UTC

I'm also wondering if the data can be stored into a DB for later usage and can be used to load up data between sessions.

PortSwigger Agent | Last updated: Nov 01, 2018 10:47AM UTC

The temp file is in the user's temp directory. It sounds like you want to manually write it to a file. There are a few extensions that save requests/responses to databases, including Elastic Burp and Log Requests to SQLite

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