Burp Suite User Forum

Create new post

Launch burpsuite_pro.zar from command line C#

Vinay | Last updated: Mar 04, 2019 01:09PM UTC

Hi support, I want to integrate burp into our exitsing automated regression suite which is written in C# using visual studio. I am thinking of doing below : 1. Launch burp from zar file from command line. 2. Call the burp rest api available to start the scan , get status etc. I am able to launch the it manually from command line in UI mode. But i want to launch it from Visual Studio and in headless mode. When I am using --headless.mode="true". The command prompt says : Invalid command. Please provide me a sample to launch burp in headless mode i.e non GUI mode from Visual Studio.

PortSwigger Agent | Last updated: Mar 04, 2019 01:42PM UTC

The usual way to launch Burp headless is: bc. java -Djava.awt.headless=true -jar burpsuite_pro.jar Try this in a command prompt and once you've got it working, the same should work in Visual Studio.

Burp User | Last updated: Mar 06, 2019 01:30PM UTC

Paul, Thanks , it worked for me. I am now able to access the rest api as well. But don't know how to get the response in xml format. Please see below my calls: I want this in xml format. HttpWebRequest request = WebRequest.Create("") as HttpWebRequest; HttpWebResponse response = request.GetResponse() as HttpWebResponse;

PortSwigger Agent | Last updated: Mar 06, 2019 01:31PM UTC

Hi Vinay, Great that you got it working. The API only supports JSON as an output format, not XML. You should be able to use the JSON parser in .Net to process it. Please let us know if you need any further assistance.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.