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

IMessageEditor get selected Offset (similar to textEditor)

Shpend | Last updated: Apr 17, 2017 05:04PM UTC

Hi Team I'm using an IMessageEditor object to create a combination of repeater and intruder. However, the function i am missing for IMessageEditor is the getSelectionBounds() (which exists for ITextEditor . What would be a good way to achieve this?

PortSwigger Agent | Last updated: Apr 19, 2017 09:11AM UTC

Thanks for this. We'll look into providing this method. Note that many message editor tabs don't support selection into the underlying message, so this method wouldn't always return data.

Burp User | Last updated: Apr 19, 2017 11:10AM UTC

Hi Dafydd Thank you for your quick answer. Am i correct to assume that you use an ITextEditor for Intruder? If yes, how do you manage the coloring? I will probably end up using ITextEditor for now, but the IMessageEditor is much more convenient. I am only using the "Raw" tab which is working fine with selections for now, thanks for the information though!

PortSwigger Agent | Last updated: Apr 19, 2017 12:42PM UTC

Burp uses its own UI components for native features, and in some cases these have more capabilities than are exposed via the API. The Intruder payload positions editor is an example of this.

PortSwigger Agent | Last updated: Apr 28, 2017 01:44PM UTC

Just to let you know that we have provided this API in today's release (1.7.22). Thanks again for your feedback.

Burp User | Last updated: Apr 28, 2017 01:53PM UTC