Burp Suite User Forum

Login to 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.

sourav | Last updated: Apr 04, 2022 08:48AM UTC

I tried the example extension which you have mentioned, but after implementing it, its not showing in ui. Even after implementing it. Also i tried to add the else condition in the code still not working.

Hannah, PortSwigger Agent | Last updated: Apr 06, 2022 10:21AM UTC

I'm sorry that wasn't helpful for you. Have you had a look at any other extensions that implement similar functionality to what you are trying to achieve? All BApp Store extensions have their source code publicly available on GitHub. You can find it here: https://github.com/PortSwigger

sourav | Last updated: Apr 06, 2022 10:42AM UTC

I checked all the extension which are using the Itexteditor. I have seen that all extension are not showing any ui after loading. Even the burp example extention for text editor is not showing any ui once i load that into my burp. After loading the example extension I can't see any any tab for that extention

Hannah, PortSwigger Agent | Last updated: Apr 07, 2022 08:20AM UTC

Could you drop us an email at support@portswigger.net with the following information:
  • Diagnostics info (Help > Diagnostics)
  • Some screenshots including the other extensions that aren't loading

You need to Log in to post a reply. Or register here, for free.