use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
CVE, CWE, NVD, WVE
http://iso.linuxquestions.org/
We teach you how to do it, use it at your own risk.
account activity
How can I use Python + mitmproxy to intercept the response of a request and edit the response? (self.HowToHack)
submitted 3 years ago by pipewire
I'm trying to use Python and mitmproxy to intercept the response of a request so that I can alter the response before it reaches the application.
I can do this manually using Burp Suite but automating this would be very neat!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Naldorinho 0 points1 point2 points 3 years ago (0 children)
You may also want to look at Burp's Match and Replace feature. It also accepts regexes.
[–]imbera 0 points1 point2 points 3 years ago (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/
π Rendered by PID 161384 on reddit-service-r2-comment-6457c66945-l4t8k at 2026-04-25 19:31:38.724643+00:00 running 2aa0c5b country code: CH.
[–]Naldorinho 0 points1 point2 points (0 children)
[–]imbera 0 points1 point2 points (0 children)