burp command line
I would like to bring up BURP using command line (without any GUI) for automation.
Is there a way to bring it up without a project file? If I do not specify the project file on the command line, it will bring up GUI which I do not want to see.
java -jar -Djava.awt.headless=true -Xmx1g burpsuite_file.jar --config-file=file1 --config-file=file2
If you launch Burp in headless mode then it won’t show a GUI ever. It will load with a default temporary project unless you specify a project file.
Try moving -Djava.awt.headless=true to straight after your java command.
java -jar -Xmx1g burpsuite_file.jar -Djava.awt.headless=true --config-file=file1 --config-file=file2
Give it a try and find out, otherwise try:
java -Djava.awt.headless=true -Xmx1g -jar burpsuite_file.jar —config-file=file1 —config-file=file2
Do you find a way to run burp without UI?
Did you try -Djava.awt.headless=true ? That works fine for us. If it’s not working for you, please describe exactly what you’re seeing, including the precise command line.
I need help to run burp in command line for automation purpose. Whatever we do with gui can we do with command in cmd. If you have a link please share it.
And also let me know is there any way to automate burp with QA.
Burp only has limited command line support. Many of the actions are GUI only. For automation, there is the Carbonator extension:- https://portswigger.net/bappstore/e3a26fff8e1d401dade52f3a8d42d06b
You may also be interested in the Burp REST API:- https://github.com/vmware/burp-rest-api
With the current version of Burp, automation is possible, but you will have to do a bit of work to get it working properly. In future versions of Burp this will be better supported.