The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Create extender jar using burpsuite.jar in classpath

Bort_Millipede | Last updated: Dec 16, 2016 06:43AM UTC

Hi, I had a question regarding the process for properly building (compiling and creating jar files) Java burp extensions. According to the normal process for this, the Extender interface files should be exported from within Burp in the Extender tab. Then the extension can be compiled and a jar file created using commands such as "javac -d build burp/BurpExtender.java" "jar -cf extender.jar -C build .". This will compile the Extender by also compiling the exported interface files, then will create a jar containing the BurpExtender.class file as well as all the compiled interface .class files. My question is: rather than following the extra step to export the interface files, could the extender be compiled/jar created using the following commands?: "javac -cp burpsuite_free_v1.7.13.jar -d build burp/BurpExtender.java" "jar -cf extender.jar -C build .". This eliminates the need to export the Extender interface files and creates a working extension jar file (one that does NOT contain the interface .class files). Is there any issue with creating extension jar files using this process? Does the fact that the created jar files do not contain the interface .class files create any potential problems? Thanks in advance.

PortSwigger Agent | Last updated: Dec 16, 2016 09:54AM UTC

We suggest you try loading your extension into Burp after compiling it with your proposed command. If everything is working, then it sounds fine.

Burp User | Last updated: Dec 20, 2016 10:30PM UTC