Burp Suite User Forum

Create new post

Add an "options" tab like the one the Proxy tool has to an extension

l. | Last updated: Jun 21, 2019 09:46AM UTC

Hello, i am looking on how can I add an options tab like the one appearing in the Proxy Tool (here -> https://i.imgur.com/rxerJ5P.png) to a new extension I am trying. The extension is similar to the one here https://github.com/PortSwigger/example-custom-editor-tab/tree/master/java

PortSwigger Agent | Last updated: Jun 21, 2019 10:19AM UTC

Your extension needs to implement the ITab interface: - https://portswigger.net/burp/extender/api/burp/ITab.html You can then use callbacks.addSuiteTab to add the tab to Burp.

Burp User | Last updated: Jun 21, 2019 11:06AM UTC

Thank you for your answer. i see, like here https://github.com/PortSwigger/custom-logger/blob/master/java/BurpExtender.java but when i am checking this one, it does not have the "options" tab inside it

PortSwigger Agent | Last updated: Jun 21, 2019 12:50PM UTC

You need to create a JTabbedPane, add the tabs you need, and return that from getUiComponent() Swing docs on JTabbedPane: - https://docs.oracle.com/javase/7/docs/api/javax/swing/JTabbedPane.html Example of extension that does multiple levels of tabs: - https://github.com/wagiro/BurpBounty

Burp User | Last updated: Jun 24, 2019 09:04AM UTC

thank you for your answer, indeed this allows the creation of a new tab. I am searching on how to add a similar section to "Intercept Client Requests" on that new tab. Check this screenshot https://i.imgur.com/rxerJ5P.png. Do you have something in mind that can help me with this?

PortSwigger Agent | Last updated: Jun 24, 2019 09:18AM UTC

I see. There isn't anything built-in that does this for. You would need to create a JTable, with the associated buttons, and code the behavior to support this. You might get some inspiration from this extension: - https://github.com/wagiro/BurpBounty/

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