【开发工具】【whistle】好用的抓包工具 - whistle安装篇

450 阅读1分钟
  1. 安装node
  2. 安装whistle
npm install -g whistle

npm默认镜像是在国外,有时候安装速度很慢或者出现安装不了的情况,如果无法安装或者安装很慢,可以使用taobao的镜像安装

$ npm install cnpm -g --registry=https://registry.npmmirror.com
$ cnpm install -g whistle

或者直接指定镜像安装:
$ npm install whistle -g --registry=https://registry.npmmirror.com
  1. 启动whistle
$ w2 start
  1. 重启whsitle
$ w2 restart
  1. 停止whistle
$ w2 stop
  1. 配置代理 代理服务器默认127.0.01,如果部署在远程服务器或虚拟机,可以改对应的ip 端口默认8899,可以-p指定新端口(具体w2 help) 6.1 全局配置: 这里只说mac情况: System Preferences > Network > Advanced > Proxies > HTTP or HTTPS

image.png 6.2 浏览器代理:安装浏览器代理插件,这里只列举chrome,推荐安装SwitchyOmega

image.png 7. 访问配置页面,如果能正常打开页面,whistle安装启动完毕,可以开始使用 http://127.0.0.1:8899

  1. 安装根证书 打开http://127.0.0.1:8899/

image.png

image.png Mac 安装证书后,需要手动信任证书 打开证书管理界面,找到带有 whistle 的字样的证书,如果有多个又不确定最新安装的是哪个,可以全部删除后重新安装 双击刚刚下载的证书,然后选择信任证书