Burp Suite User Forum

Create new post

Intercept Burp's requests and set authenticated upstream proxy.

Zatix | Last updated: Apr 09, 2017 02:43PM UTC

Hi, 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); Any ideas? Thanks

PortSwigger Agent | Last updated: Apr 13, 2017 03:23PM UTC

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.

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