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

Setting setSearchExpression for Burps' Message Editor

Gaurav Narwani Jan 12, 2020 10:07AM UTC

I'm making an extension where I have to show markers or found string in response. I prefer not to use the IScanner of Burp rather want to use the setSearchExpression of the TextEditor to highlight in response. But the thing is that while using the Message Editor of burp, it shows that there is an error 'burp.q9i' object has no attribute 'setSearchExpression'

Used Code:
self._responseViewer = self._callbacks.createMessageEditor(self, False)
self._responseViewer.setSearchExpression("777")

Please let me know what error I'm making from my side


Hannah Law Jan 13, 2020 02:47PM UTC Support Center agent

Do you have a public GitHub repository I can take a look at to see a bit more of your code?


Gaurav Narwani Jan 15, 2020 01:54PM UTC
Is there any option to set the setSearchExpression string for IMessageEditor? The setSearchExpression only works for the ITextEditor

Hannah Law Jan 16, 2020 09:30AM UTC Support Center agent

The full list of extender documentation can be found here: https://portswigger.net/burp/extender/api/index.html (as I’m sure you are aware)

Would you be able to set the text for ITextEditor to display the contents of what you would want to find in the IMessageEditor? That way you could have the same contents, but with the setSearchExpression() function.


Post Your public answer

Your name
Your email address
Answer