Looking for our research? We've moved it to a dedicated page

Sample Burp Suite extension: event listeners

Dafydd Stuttard | 13 December 2012 at 12:17 UTC
burp extender

This extension demonstrates how to register listeners for various runtime events:

The sample extension simply prints a message to its output stream when an event occurs.

Registering an extension state listener is particularly important for any extension that starts background threads or opens system resources (such as files or database connections). The extension should listen for itself bring unloaded by the user, and should terminate any background threads or close any open resources when this event occurs. This good practice enables the user to fully unload the extension via the Burp UI.

Download the event listeners extension. The download includes source code for Java and Python, and the compiled JAR file for Java.