Burp Suite User Forum

Create new post

How should I set Hightlight on Issue

loulan | Last updated: Apr 15, 2020 07:49AM UTC

I used IScannerCheck, and tried to use baseRequestResponse.setHighlight to set Highlight when find Issue,but remind me that don't support set Highliht. I wanna set highlight when the Issue i'm looking forward to come up.

Hannah, PortSwigger Agent | Last updated: Apr 15, 2020 10:21AM UTC

setHighlight() will apply a highlight to the IHttpRequestResponse item. The IScanIssue class has getHttpMessages() which returns the HTTP messages for which the issue was generated, in the form of an array of IHttpRequestResponse's. Have you tried using that to retrieve the objects to apply the highlight to?

loulan | Last updated: Apr 15, 2020 12:20PM UTC

I tried two things with python? No1. IScannerCheck.doPassiveScan(IHttpRequestResponse baseRequestResponse) baseRequestResponse.setHighlight('red') No2. class demo(IScanIssue): def __init__(self, httpMessage): httpMessage.setHighlight('red') self._httpMessage = [httpMessage] def getHttpMessages(self): return self._httpMessage Both failed. Told me "Item does not support highlights"

Hannah, PortSwigger Agent | Last updated: Apr 16, 2020 10:25AM UTC

I would recommend looking at an existing extension that has implemented similar functionality, and see how they've done it. Bookmarks uses highlighting, but is written in Kotlin rather than Python. You can find all of the extensions available on the BApp Store on our public GitHub: https://github.com/PortSwigger

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.