headless-burp icon indicating copy to clipboard operation
headless-burp copied to clipboard

License Key Not Recognized

Open lkotlus opened this issue 2 years ago • 1 comments

I'm currently trying to test out the capabilities of Headless-Burp with BurpSuite Pro, but when prompted for the license key, it responds with "The supplied license key was not recognized. Please try re-entering your license key."

I currently only have a trial license and the desktop hasn't had any issues with it. The exact command I am using is java -Xmx1G -Djava.awt.headless=true -classpath BurpSuitePro/burpsuite_pro.jar burp.StartBurp --unpause-spider-and-scanner --project-file=project.burp -c config.xml and just in case there was an issue with copying and pasting the license, I created a bash script to automatically enter it when prompted, but this has the same issue as when I paste it in manually.

Is there a fix for this?

I am using the latest version of BurpSuite Pro and OpenJDK 17.07

lkotlus avatar Jun 28 '23 16:06 lkotlus

This workaround worked for me and you may also find it interesting.

My hypothesis is that the -classpath execution option is no longer supported (check the official burp from CLI documentation). Therefore, an option to make this work is to specify all the extension related info in the user-config.json file and provide it to the official command line burp execution command using the flag --user-config-file (a default user-config.json file can be exported form a burp project and then modified as desired). The allowed execution looks something like:

java -Djava.awt.headless=true -Xmx2g -jar /opt/burpsuite/burpsuite.jar \
  --unpause-spider-and-scanner \
  --user-config-file=user-config.json \
  --project-file=project.burp -c config.xml

tdev-cybertix-ai avatar Oct 22 '25 09:10 tdev-cybertix-ai