Building BurpSuite Extensions

IntelliJ - Setting up development environment (Montoya API + Java)

Easy
10 min

At the end of the course

At the end of the course, we will go through a more recent solution for building extensions for BurpSuite. Nowadays, BurpSuite encourages a different approach called Montoya API. In this module, we focus on setting up the IntelliJ IDEA environment, where we will build the same login handling logic in the following module. One downside of this "newer" approach is that the developer must write the extensions in Java, for the Jython/Python approach no longer works. So if Java feels difficult, the upcoming modules may prove challenging.

Installation and testing of IntelliJ IDEA software

However, let's start by setting up the environment, similar to the first module of the course where we installed PyCharm software. Now, let's install IntelliJ, which you can find here. After you have installed this software, proceed to download the example repository from Portswigger on Github, which you can find here. Next, open the httphandler project in the IDEA environment, located in the downloaded example repository.

Compiling the extension

Next, navigate through the gear icon in the upper right corner -> Artifacts -> plus sign -> JAR -> From modules with dependencies. Leave the default settings and click OK.

Make sure that the Output directory is where you want the final JAR extension files to end up.

And finally, ensure that everything is fine by trying to build a functional JAR extension file from the existing code. Go to Build -> Build Artifacts.. -> Build. Try installing this built JAR file into the BurpSuite software. If no errors occur, everything is fine.

hakatemia pro

Ready to become an ethical hacker?
Start today.

As a member of Hakatemia you get unlimited access to Hakatemia modules, exercises and tools, and you get access to the Hakatemia Discord channel where you can ask for help from both instructors and other Hakatemia members.