The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Make extension operate on a specific request not all of them.

hazem | Last updated: Nov 18, 2022 04:26PM UTC

I know that the processHttpMessage interface makes my code execute at every request and response passed, how do i make my extension run at a specific request (or specific multiple ones), like lets say i can select a few requests to from the target tab (or repeater for example) => right click => Extensions => My-Extension , how do i do that in my code ?

Hannah, PortSwigger Agent | Last updated: Nov 21, 2022 10:47AM UTC

Hi It sounds like you want to register an IContextMenuFactory. On the IContextMenuInvocation interface, you can use "getSelectedMessages()" to retrieve the messages that the user had selected. You can find a simple example of an extension that uses a context menu factory here: https://github.com/Hannah-PortSwigger/ContextMenuExtension/blob/main/src/main/java/burp/BurpExtender.java

hazem | Last updated: Nov 21, 2022 05:00PM UTC