天天看点

mac抓包工具anyproxy

Anyproxy是一个基于nodejs的,可供配置的http/https代理服务器。

文档地址:http://anyproxy.io/

github地址:https://github.com/alibaba/anyproxy

1、环境安装

安装 homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装node

brew link node

brew uninstall node

brew install node

 安装 anyproxy

 npm install -g anyproxy

 代理默认端口8001

 web 默认端口8002

 检查安装:

 node --version

 anyproxy --version

2、安装pm2

npm install pm2 -g

检查安装:

pm2 --version

3、抓取https需要安装证书。

anyproxy-ca

进行证书信任及安装

启动: anyproxy --intercept

4、浏览器打开:

http://127.0.0.1:8002/

5、手机端设置 

抓取https需安装证书

6、pm2管理anyproxy

1)启动

2)关闭  pm2 stop anyproxy

3)查看运行的  pm2 start anyproxy -x --i