Closed serkonda7 closed 9 months ago
Hi.
The functionality to mark requests associated with issues this way is already available. This is referred to as "Marker" within the Montoya API.
Markers are not displayed in the regular editor.
Markers are not displayed in the regular editor.
Why tho? That's exactly what I want to do. Use Markers in my custom UI with a editor created by the API.
Markers are used in specific places within Burp. For example, as part of raised issues, part of the Scanner, or part of Intruder.
If you would like to have highlighted text as part of your message editor, you would need to use setSearchExpression()
on the editor to match with the specific text that you wish to highlight.
Thanks for the suggested workaround. Tho I think this is not clear from the available documentation
Thanks for the feedback. We'll look into whether there are any ways we can adjust the current documentation to make this clearer.
If there's anything else we can help with, then please let us know.
Hey @Hannah-PortSwigger,
Why not add support for Marker
s highlighting to HttpRequestEditor
and HttpResponseEditor
that you can create with api.userInterface().createHttpRequestEditor
and api.userInterface().createHttpResponseEditor
?
The setSearchExpression
suggested solution only works partially, but what if I want to highlight more than one different thing? Any chance of including such a feature in the editors exposed by the Montoya API? Any alternative to achieve that goal?
Thanks!
Hi @joanlopez
We have an ongoing feature request for this functionality, to which I have added your +1.
If a user selects the "Regex" option as part of their settings for the search expression, then you can use a regular expression to search for multiple results - not the cleanest way to go about it, but if this is important functionality for you then this could be a potential workaround.
We have an ongoing feature request for this functionality, to which I have added your +1.
Yes, please! Do you have any approximate ETA?
If a user selects the "Regex" option as part of their settings for the search expression, then you can use a regular expression to search for multiple results - not the cleanest way to go about it, but if this is important functionality for you then this could be a potential workaround.
Yeah, I found that workaround in another issue. It temporarily works, but it kinda conflicts with the use of search, because if the user modifies the value (wants to search other stuff), they lose the highlights and also cannot go back to the previous value (regex to match them all).
So, definitely looking for that feature.
Thanks!
Do you have any approximate ETA?
We don't have an ETA for this functionality. We're currently monitoring the popularity of this feature request.
If there's anything else we can help with, then please let us know 😊
Hey @Hannah-PortSwigger 👋
Just adding another +1 to adjusting the documentation and making it clearer where withMarkers
works would be a big help if possible 🙏
I just wasted invested ~2 hours learning the hard way that
ProxyResponseHandler
can't be used to highlight interesting portions of response(s) like I thought it couldapi().organizer().sendToOrganizer(HttpRequestResponse myWorkaround)
doesn't help eitherThanks!
@the-cartographer Thanks for the feedback. We've added your +1 to this feature request as well.
If there's anything else we can help with, then please let us know.
I want to replicate the highlights functionality of the issue activity (see image) for custom editors created via API:![image](https://github.com/PortSwigger/burp-extensions-montoya-api/assets/40118727/50be8a56-7a9b-486b-b952-81cc130a6c9b)
Nothing the API offers sounds like it would fulfill this task.
Therefore i suggest adding a new function to Editor interface:
setHighlights(highlights: List<Marker>)