The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Automatically Change Response

Schulz, | Last updated: Jun 27, 2018 02:23PM UTC

Hi, I am currently developing a Burp plugin in python and do have a problem for which I don't have a solution. I basically want to automatically change the response but I do have a plugin in between that decodes my binary. What I have achieved until now is that I see my decoded message as a new tab in the proxy and target view. I can also manipulate the response by intercepting it first and then change whatever I want manually (this works through implementing IMessageEditorTab's getMessage). However, I would want to change that data in my decoded message on the fly without the need to manually operate. It all sums up to Burp's Proxy - Options - Match and Replace functionality BUT on top of my decoded message. Does anyone have advice on how to do that? I don't seem to find the correct interface / method to achieve that. Thanks, Pascal

PortSwigger Agent | Last updated: Jun 27, 2018 02:26PM UTC

Hi Pascal, It sounds like the IHttpListener interface would be suitable. You can provide a processHttpMessage method which is called each time a request or response is sent to/from Burp. You may be interested in the FastInfoSet Tester BApp which does something similar: - https://github.com/portswigger/fast-infoset-tester Please let us know if you need any further assistance.

Burp User | Last updated: Jun 28, 2018 12:42PM UTC