Mitmproxy -w - how to include results


#1

I get requests and parameters, but not the results (json etc) - how can I include them into my outfile ?


#2

Each flow is stored in the out file. If a flow has the response, it will be there in the out file.


#3

I can see the output using charles proxy, but mitmproxy does not show it. If I search in the out-file, the json output fields are not found…


#4

How exactly are you searching the out file?
mitmproxy uses tnetstrings not json


#5

I open the out file in a text editor and do simple text search…


#6

If the server responds with gzipped data (compressed on the fly) then MITMProxy will store it that way. If you specify the -z or --anticomp command line argument, it tells servers that it doesn’t want gzipped data so you should get the raw data instead.


#7

That works - thanks… One final question, the CERTICATE is that client sent to server, or certificate received from the server ?


#8

That is the certificate received from the server.