抓包工具mitmproxy使用

2019-08-06

抓包工具mitmproxy

环境Centos7

安装依赖

1
2
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel

安装python3.6

1
2
yum -y install python36 python36-devel \
&& python3.6 -m venv /opt/py3

创建env环境

1
2
python3.6 -m  venv /opt/py3
source /opt/py3/bin/activate

安装mitmproxy

1
pip install mitmproxy

启动

1
mitmproxy -p 8888