Burp Suite User Forum

Create new post

ITextEditor not giving the updated text

sourav | Last updated: Apr 02, 2022 06:05PM UTC

I am not able to get the text after its modified. I am adding a text editor in JTabbedPane, so instead of request and response at the bottom of the logger table, I have a tab for request and test cases tab which is using a text editor. I am unable to get the updated text. The code is the same as a custom logger only instead of a response view I have a text editor https://github.com/PortSwigger/custom-logger/blob/master/python/CustomLogger.py I have created a function inside the BurpExtender class still not getting the updated text. https://ibb.co/7vHyc2S

Hannah, PortSwigger Agent | Last updated: Apr 04, 2022 08:19AM UTC

Hi You can find a similar extension containing this functionality here: https://github.com/PortSwigger/example-custom-editor-tab/blob/master/python/CustomEditorTab.py Currently, your extension is only able to use getMessage() if the text input has been modified. You might want to put an "else" in there so that you can get the message if the text hasn't been modified.

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