login

Burp Suite, the leading toolkit for web application security testing

PortSwigger Web Security Blog

Thursday, 13 December 2012

Sample Burp Suite extension: event listeners

This extension demonstrates how to register listeners for various runtime events:
  • HTTP requests and responses for all Burp tools.
  • HTTP messages intercepted by the Proxy.
  • Addition of new scan issues.
  • The extension being unloaded by the user.
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.

1 comment:

Anonymous said...

HI,
i implemented the same code. I also configured my browsers proxy to local host. But when i am trying to print the intercepted message in my IDE, its not displaying. Infact I cant see anything on my IDE console. please help


User Forum

Get help from other users, at the Burp Suite User Forum:

Visit the forum ›

Copyright 2014 PortSwigger Ltd. All rights reserved.