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

Custom Extension - Get All Selected Messages Children

Jake | Last updated: May 15, 2022 05:33PM UTC

I am using Jython to create an extension. I want to be able to right-click on any node in the "Target > Site Map" to return all request-response pairs associated with that node (children). Actual result: Only the selected node is being returned What I want: Return the selected node, and its children nodes to be returned My code: ``` def createMenuItems(self, context_menu): for message in context_menu.getSelectedMessages(): request = message.getRequest() headers = self.helpers.analyzeRequest(request).getHeaders() print(headers) ``` Clarification: By "children nodes" I mean, for example, right-clicking on the root node "https://www.google.com", I want also "/images" and "/flights" etc. to be returned.

Hannah, PortSwigger Agent | Last updated: May 17, 2022 09:53AM UTC