Burp Suite User Forum

Login to post

Create menu bar doesn't work

Bajii0 | Last updated: Jul 18, 2023 08:50AM UTC

Hello, I'm currently creating a Java extension with Montoya API and I can't make spawn a menu bar. I tried to copy/paste the example code from the github but nothing happened. Did I correctly understand ? The menu bar should be on the side of the 'Extensions' or 'Learn' menu right ? Do you know any other project using Montoya API (I know how to do it without API, with previous system) that create a menu bar so I could check their code ?

Hannah, PortSwigger Agent | Last updated: Jul 18, 2023 09:25AM UTC

Hi. The menu bar you are referring to should add a top-level menu item. This is alongside "Burp", "Project", "Intruder", "Repeater", "View" and "Help". If you're looking to add a new tab to Burp, then you would want to use UserInterface.registerSuiteTab(). An example of an extension that adds a new tab to Burp can be found here: https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customlogger

Bajii0 | Last updated: Jul 18, 2023 09:38AM UTC

Ok, it helps me a lot thank you very much !

Bajii0 | Last updated: Jul 18, 2023 09:56AM UTC

By any chance, do you have example of something more "active", for example a button that could run a scan with options being checked above it ?

Hannah, PortSwigger Agent | Last updated: Jul 19, 2023 08:33AM UTC

Hi You can configure your UI using Java Swing. You can't trigger a full scan from the Montoya API. However, you can start a crawl or audit. This functionality can be found here: https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/scanner/Scanner.html You cannot currently change the configuration that these options start with. They will use the default crawl and audit configuration.

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