Burp Suite User Forum

Create new post

Updating request programatically from a custom tab

Alvaro | Last updated: Jun 26, 2019 12:10PM UTC

When switching tabs in the HttpEditor (eg: from custom tab to raw), `IMessageEditorTab.getMessage` is invoked to update the request with user modified data. I would like to trigger the same behaviour programatically, so clicking a button in my custom tab will update the request, and therefore also invoke `IMessageEditorTab.setMessage` on my custom tab. Is this possible, how can I do it? Thanks! A

PortSwigger Agent | Last updated: Jun 26, 2019 01:53PM UTC

There's not an official way to do this, but I believe you can do a hack using Swing. You would need to go to the parent of your Tab, then instruct it to switch tabs.

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