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

IMessageEditorController including applyMarkers?

Maarten | Last updated: Feb 22, 2021 10:02AM UTC

I am using Sample Burp Suite extension: custom logger as a base to create a plugin, but I noticed that I cannot add the marker functionality (which is used by scanner issues). IHttpRequestResponseWithMarkers messageInfoMarked; requestMarkers.add(new int[] {1,20}); responseMarkers.add(new int[] {1,20}); messageInfoMarked = callbacks.applyMarkers(baseRequestResponse, requestMarkers, responseMarkers); The docs say that getRequest() returns byte[]. How can I include some marked areas withint the request and reponse that is being displayed in IMessageEditorController? I am using addFinding(IHttpRequestResponseWithMarkers,...) to add to an ArrayList that is linked to a TableModel/JTable.

Uthman, PortSwigger Agent | Last updated: Feb 22, 2021 10:49AM UTC

applyMarkers will only provide highlighting in certain situations, such as specifying Intruder payload positions, Scanner insertion points, and highlights in Scanner issues, rather than in the general editor. If you implement IMessageEditor, syntax highlighting will available by default.

Maarten | Last updated: Feb 23, 2021 12:11PM UTC

"syntax highlighting will available by default." you mean that the user can select it? because the interface only has getters, i.e., getSelectedData(), getSelectionBounds(), not setters

Uthman, PortSwigger Agent | Last updated: Feb 24, 2021 01:54PM UTC