Intercept Burp's requests and set authenticated upstream proxy.
I want create an extension that will intercept and proxy Burp's requests.
I noticed I can implement IHttpListener and override processHttpMessage() and set a new IHttpService for each request.
The problem is that I need to set basic auth to the proxy but I can not pass that information to buildHttpService(String host, int port, String protocol);
You can configure upstream proxies, including authentication, in Burp’s options. There isn’t a way to programmatically set the proxy/auth for an individual request, but you can use the API to load settings for upstream proxy. So if you wanted to change your upstream proxy from time to time (rather than for a particular request), you can do this.