mac抓包
使用mitmproxy,免费
-
在mac终端执行命令
brew install mitmproxy
进行安装 -
执行命令
mitmdump —version
看到如下输出,代表安装成功Mitmproxy: 4.0.4 Python: 3.7.3 OpenSSL: OpenSSL 1.0.2r 26 Feb 2019 Platform: Darwin-18.2.0-x86_64-i386-64bit
-
执行命令
mitmproxy
启动,默认端口为8080,如果要自定义端口-p 端口号
-
启动完成,在要抓包的设备中设置网关内容
ip: 127.0.0.1 # 改为启动mitmproxy的机器ip port: 8080 # 默认。如果自定义就改为自定义端口
可以通过webui直观查看抓包结果
- 终端执行命令
mitmweb
,默认端口8081,修改默认端口--web-port 端口号
- 运行成功后,浏览器弹出
127.0.0.1:8081
网页,默认的proxy端口为8080
Mac capture package
use mitmproxy, free
-
Execute the command
brew install mitmproxy
on the mac terminal to install -
Execute the command
mitmdump —version
to see the following output, indicating successful installation.
shell Mitmproxy: 4.0.4 Python: 3.7.3 OpenSSL: OpenSSL 1.0.2r 26 Feb 2019 Platform: Darwin-18.2.0-x86_64-i386-64bit
-
Execute the command
mitmproxy
to start. The default port is 8080. If you want to customize the port-p port number
-
Startup is complete, set the gateway content in the device to be captured
shell Ip: 127.0.0.1 # Change to mitmproxy machine ip Port: 8080 # default. If custom, change to custom port
Can view the results of the capture through webui
- The terminal executes the command
mitmweb
, the default port 8081, and the default port `--web-port port number. - After running successfully, the browser pops up the
127.0.0.1:8081
web page, the default proxy port is 8080
translate by google