vmware / burp-rest-api

REST/JSON API to the Burp Suite security tool.
BSD 2-Clause "Simplified" License
547 stars 111 forks source link

Getting NullPointerException on Remote Server #158

Closed UbaidAhmed2803 closed 2 years ago

UbaidAhmed2803 commented 2 years ago

Describe the bug I am trying to run the following command on a remote server (Digital Ocean Ubuntu Instance):

./burp-rest-api.sh --config-file=testing.json --project-file=testing3.burp

I am getting the following: Your JRE appears to be version 11.0.16 from Ubuntu Burp has not been fully tested on this platform and you may experience problems. Could not start Burp: java.lang.NullPointerException

Below is the full stack trace

webscanner@tp-web-scanner:~/burp-rest-api$ ./burp-rest-api.sh --config-file=testing.json --project-file=testing3.burp +++ dirname ./burp-rest-api.sh ++ cd . ++ pwd -P

Java version on my remote server: openjdk 11.0.16 2022-07-19 OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04) OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Below are the list of files present in the directory

image

Please help me out in resolving this issue

phoenixml commented 2 years ago

according to this documentation jre 11 should work with burp https://portswigger.net/burp/documentation/desktop/getting-started/launch-from-command-line but I suggest to update to the at least 17 and test it again. I hope this sort out your issue.

ikkisoft commented 2 years ago

Which Burp JAR have you used?

It's import to be the JAR downloaded from https://portswigger.net/burp/releases and not the JAR copied after a standard installation. With the wrong one, I am also getting:

Unrecognized command-line argument: --headless.mode
Could not start Burp: java.lang.NullPointerException