Burp Suite User Forum

Create new post

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

Excellent! thank you

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