Burp Suite User Forum

Create new post

Calling Logger through Montoya?

Muhan | Last updated: Nov 20, 2023 02:29AM UTC

Hey there, I'm trying to create an extension which has a listener attached to the Burp Logger. Every time new requests/responses are logged, the extension will look through the new requests/responses and save the responses of those that contain a specific string. The trouble is that I have not been able to find any method I can call which will allow me to programmatically access the Burp Logger through Montoya. I'd love some help with this.

Hannah, PortSwigger Agent | Last updated: Nov 20, 2023 01:17PM UTC

Hi The "Logger" tab simply keeps track of all traffic passing through Burp. The equivalent to this would be an HttpHandler. This receives information on any request that passes through Burp's network stack in the same way that Logger does. You can find some example extensions for this here: - https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/httphandler - https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customlogger

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