Http injection


#1

will mitmproxy be able to achieve things like this?


and this one same thing but on windows.


#2

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


#3

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


#4

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.