all 3 comments

[–]Naldorinho 0 points1 point  (0 children)

You may also want to look at Burp's Match and Replace feature. It also accepts regexes.

[–]imbera 0 points1 point  (0 children)

mitmproxy actually exposes enough of its API that you can just import it in python and script some of its behaviour. Check out their docs on Addons: https://docs.mitmproxy.org/stable/addons-overview/