1 – Download.

Website: https://mitmproxy.org/ making address: https://github.com/mitmproxy/mitmproxyCopy the code
pip install mitmproxy --ignore-installed six  
brew install mitmproxy  
Copy the code

2 – Prepare materials in small terms: computer, mobile phone, a PY3 file, terminal implementation process: the terminal is used to start and act as a visual display medium, the specific code is done in a PY3 file. Process: 1: mobile computer IP, port 8888 2: write a py3 file, be sure to use python3. X grammar to write well Now introduce two kinds of function request and response. The former is used to intercept outgoing request headers/body etc. before the data reaches the server. The latter is intercepting return headers/return bodies etc

Def request(flow): 'return' def request(flow): 'return'Copy the code

3. Start: In the terminal type mitmProxy -s your PY3 file -p 8888. (To be continued…)