Burp Suite User Forum

API function to change Response on the fly

App | Last updated: Apr 16, 2018 06:47AM UTC

Hi I'm aware of Match and Replace feature to change response on the fly. But is there a way to do it from plugin API ? I'm looking at potential API https://portswigger.net/Burp/extender/api/burp/IHttpRequestResponse.html#setResponse(byte[]) Please correct me if I'm wrong.

PortSwigger Agent | Last updated: Apr 16, 2018 07:16AM UTC

Hi, Yes, if you implement IHttpListener, within processHttpMessage you can modify the response using messageInfo.setResponse. You can also do this in IProxyListener.

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