Burp Suite User Forum

Create new post

Using Montoya API How do I insert Text String into the Request Editor?

Mike | Last updated: Oct 05, 2023 04:31PM UTC

I have the context menu working... but I can't figure out how to insert some text. Looking for a Current java Montoya example of inserting Text into the Request Editor. Goal is to replace a selection, or simply insert text where the caret is. Thanks

Mike | Last updated: Oct 05, 2023 04:32PM UTC

To clarify insert text into the "Repeater" Request pane.

Michelle, PortSwigger Agent | Last updated: Oct 06, 2023 12:33PM UTC

Hi I'm sorry, there isn't a way to insert text wherever the current selection or cursor happens to be. You can send a request to Repeater using the Montoya API, which will create a new tab. You can also create custom request tabs on the message editor: https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customrequesteditortab I hope this helps.

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