Burp Suite User Forum

Create new post

Expose intercept state for Burp API

Charlie | Last updated: Feb 07, 2018 09:38AM UTC

I am currently developing a burp extension and would like to be able to check the state of the "Intercept" button in the proxy tab. I am able to turn on/off the interception but am not able to poll the state. Thanks

PortSwigger Agent | Last updated: Feb 07, 2018 09:59AM UTC

Hi Charlie, Thanks for getting in touch; that sounds like a good suggestion. I've added this to the development plan, although it is likely to be some time before we look at the Extender API again. In the meantime, can I ask what your extension is doing? We may be able to suggest a workaround.

Burp User | Last updated: Feb 07, 2018 03:38PM UTC

In basic terms, it will publish the intercept state to a firefox extension.

PortSwigger Agent | Last updated: Feb 07, 2018 03:53PM UTC

Hi Charlie, Ok, as a bit of a hack pending the API improvement you could hook IProxyListener and IHttpListener. If there's a delay more than say 10ms between processProxyMessage and processHttpMessage, that implies that Intercept is turned on.

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