CoastalHacking / burp-pac

Burp Proxy Auto-config Extension
Apache License 2.0
6 stars 6 forks source link

Add integration test to verify proxy is being used correctly by Burp #1

Open jpasski opened 6 years ago

jpasski commented 6 years ago

Create an integration test that starts the free version of Burp and verifies a request is sent to a mocked proxy when extension is loaded and mocked proxy is configured. Bonus points for negative tests if possible.

jpasski commented 6 years ago

JavaExec seems to be the way to go. However, Burp would need to terminate gracefully on its own. This could be performed via an extension that, once loaded, calls whatever it needs to do and then calls burp.IBurpExtenderCallbacks.exitSuite(boolean). It also should start burp in headless mode (-Djava.awt.headless=true). This forum post alludes to the extension needing to be loaded first and then its configuration stored.