Http injection

will mitmproxy be able to achieve things like this?


and this one same thing but on windows.
https://sites.google.com/site/httpproxyinjector/

Check out Pathoc, it has those features: http://docs.mitmproxy.org/en/stable/pathod/intro.html#pathoc

could you give me out an example of changing the host header?

Try one of these from command line:

pathoc -s google.com get:/path:h"Host"="yourhost.com" -p -q

pathoc -s google.com get:/path:h\"Host\"=\"yourhost.com\" -p -q

There is one more way, use mitmproxy and edit the request.