NetsOSS / headless-burp

Automate security tests using Burp Suite.
https://netsoss.github.io/headless-burp/
223 stars 56 forks source link

config-file error on XML #20

Closed michaelsmitasin closed 5 years ago

michaelsmitasin commented 5 years ago

The documentation refers to using XML for the config-file, but when attempting to do so, for example:

java -Xmx1G -Djava.awt.headless=true -classpath burpsuite_pro.jar burp.StartBurp --project-file=example.burp --config-file=example.xml

Where example.xml is:

`<?xml version="1.0" encoding="UTF-8"?>

HTML

`

It returns the error as if it expects JSON:

Invalid JSON configuration found at: >>> <<< ?xml versi - Unexpected '<' at [line 1, column 1]

anandsudhir commented 5 years ago

You're usingthe wrong command line argument. Note that the documentation says use-c (--config) <file> to pass the XML config file.

--config-file is for passing Burp's own project config file.