Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

IMessageEditor get selected Offset (similar to textEditor)

Shpend 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?

Dafydd Stuttard Apr 19, 2017 09:15AM UTC Support Center agent

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.

Shpend 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!

Dafydd Stuttard Apr 19, 2017 02:39PM UTC Support Center agent

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.

Dafydd Stuttard Apr 28, 2017 01:46PM UTC Support Center agent

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

Shpend Apr 28, 2017 01:53PM UTC
Yes i just saw it, thanks for the quick turn around! Really appreciate it.

Post Your public answer

Your name
Your email address