Mac上使用Charles抓包
2018-05-25 本文已影响61人
joeal
Mac上使用Charles抓包
工具
Charles
iPhone代理设置



获取Mac IP地址

Charls设置
配置HTTP抓包代理
[图片上传失败...(image-8c2949-1527238400315)]
选择在8888端口上监听,然后确定。够选了SOCKS proxy,还能截获到浏览器的http访问请求。

配置SSL代理
一、手机上安装证书
在iPhone上使用Safari打开网址chls.pro/ssl,然后会下载一个证书,安装,信任就可以了。
在iPhone设置-》通用-》关于本机-》证书信任设置,选择Charles证书信任

二、Mac上也安装证书
在Mac上安装完证书,去钥匙串中找到该证书并设置成信任。

在Mac上打开钥匙串搜索Charles证书,右键-》证书简介-》信任


结果
这里展示我抓取的是知乎的首页推荐数据


