Burp Suite User Forum

Create new post

Match -> Match/Replace.

Andrew | Last updated: May 25, 2015 11:48PM UTC

I would like to beg this request again, as there is a need for feature. Here the use case. I would like to be able to Match/Replace based on Matching a different value. I have been told to write it myself, but that would be like you trusting me to operate on you.....I can't perform that function. I don't code. if Match Request Header: POST /path/to/file then Match Request Header Host: www.google.com Replace Host: 127.0.0.1 In this example, I don't want to replace all Host: www.google.com requests, just when a certain other conditions are true. It would also be handy to match request features with with match/replace response features. Thanks, Andrew

Burp User | Last updated: May 25, 2015 11:51PM UTC

Perhaps this could be built with another request where your response was to write it him/herself: https://support.portswigger.net/customer/portal/questions/12710710-sciript-a-proxy-match-replace-or-well-really-just-an-insert-

PortSwigger Agent | Last updated: May 26, 2015 02:47PM UTC

Thanks for the feature request. As already noted, the only way to do conditional match-and-replace currently is via an extension.

Burp User | Last updated: Jul 03, 2015 07:06PM UTC

This is fairly easily handled with ZAProxy and it's integrated scripting. You could chain ZAP with Burp and use it to do what you are after. (That's what I ended up doing to address my thread linked above.) https://github.com/zaproxy/zaproxy https://github.com/zaproxy/community-scripts

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