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

How to get the file of my plugin resource in burpsuite?

EmYiQing | Last updated: Dec 26, 2020 06:42AM UTC

My English is not good.I will try my best to describe my problem clearly. I create a maven project and put an executable file in the resource directory. I can use `XXX.class.getResource("/");` code obtains the file path in the IDE, and then calls the `Runtime.getRuntime ().exec (command);` execute. When I package and add the plugin to burpsuite, the output of burpsuite is as follows: java.io.IOException : Cannot run program "D:/BurpSuiteCommunity/burpsuite_ community.jar !/META-INF/versions/11/xxx.exe ": CreateProcess error = 2, the system cannot find the specified file. Why can't the plugin find the file in burpsuite.So how to get this file and execute it. Thank you,best wishes.

Liam, PortSwigger Agent | Last updated: Dec 31, 2020 09:37AM UTC

Have you checked out our guide to writing an extension? - https://portswigger.net/burp/extender/writing-your-first-burp-suite-extension#:~:text=In%20Burp%2C%20go%20to%20the,to%20provide%20its%20Python%20support.

EmYiQing | Last updated: Jan 01, 2021 01:36PM UTC

I understand the basic development steps and have completed several simple extensions. At present, the problems I encounter need to call a binary file. I package it into a jar file. After installing the extension, the error content is that I can't find the binary file I put in. I guess the mechanism of burpsuite loading is not to get all the contents of the jar package, but simply get the class file to load, and ignore the other files. Of course, this is only my guess. How to deal with the current situation? By the way, I developed it in Java and packaged it with Maven tools.

Hannah, PortSwigger Agent | Last updated: Jan 04, 2021 03:47PM UTC