IMessageEditor get selected Offset (similar to textEditor)
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?
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.
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!
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.
Just to let you know that we have provided this API in today’s release (1.7.22). Thanks again for your feedback.