Burp Suite User Forum

Create new post

Add a custom tab in the Response viewer

sherlock | Last updated: Aug 16, 2023 07:16AM UTC

I am writing an extension that dynamically encrypts/decrypts all request/response payloads. In the Burp Logger, I am adding a custom tab to the HTTP Message Editor by implementing `IMessageEditorTab` interface. The custom tab appears in the "Request" pane, to the right of the "Hex" tab, and shows the decrypted payload from the request sent from the browser, as expected. Now, I want to add another similar custom tab in the "Response" pane that will show the decrypted payload from the response. But, I cannot find a way to do that. Is the HTTP Message Editor embedded only inside the Request pane, not in the Response pane. Any idea how can I achieve what I want to do?

Hannah, PortSwigger Agent | Last updated: Aug 16, 2023 10:14AM UTC

Hi It looks like you're using the legacy Extender API. You can find an example that adds a custom tab to an editor here: https://github.com/PortSwigger/example-custom-editor-tab/ You can see that the visibility of this tab for requests and responses is controlled within the "isEnabled()" method here: https://github.com/PortSwigger/example-custom-editor-tab/blob/8523d25937ca047264db3323d0419a46d6824295/java/BurpExtender.java#L77 Overall, we'd recommend checking out the Montoya API - it's a lot easier to use and has more functionality. You can find more details here: https://portswigger.net/burp/documentation/desktop/extensions/creating

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