您的位置:首页 > 移动开发

Fiddler抓包手机APP数据,wireshark,charles

2017-09-14 21:52 936 查看

fiddler

安装好fiddler后,打开tools->options,勾选Allow remote computers to connect,



允许解析https;



打开浏览器,输入localhost:8888,安装https certificate.

也有可能会出现creation of the root certificate was not located等错误;

需要在命令行工具中

cd "C:\Program Files (x86)\Fiddler2"
makecert.exe -r -ss my -n "CN=DO_NOT_TRUST_FiddlerRoot, O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com" -sky signature -eku 1.3.6.1.5.5.7.3.1 -h 1 -cy authority -a sha1 -m 120 -b 09/05/2012


电脑用无线网卡连接,手机和电脑连同一个wifi。

打开cmd命令,输入ipconfig



打开手机wifi,长按wifi后选择修改网络



点击显示高级选项,代理选“手动”,服务器主机名填写电脑上的IP地址“192.168.111.146“,服务器端口号填“8888”,IP选“DHCP”。



最后就很愉快地抓到手机APP的json数据了



wireshark

抓包时无线网络别选混杂模式。

使用静态IP抓包如下:





打开代理的linux服务器,

vim /etc/sysctl.conf


#Uncomment the next line to enable packet forwarding for IPv4

net.ipv4.ip_forward=1

sysctl -p
tcpdump -i eno1 src 192.168.111.176 -w 2.cap
sz 2.cap




charles

选择proxy->proxy settings,port填“8888”,勾选enable transparent http proxying,勾选enable windows proxy





https

1.Help->SSL Proxying->Install Charles Root Certificate;



2.安装SSL证书到手机设备

Help->SSL Proxying->Install Charles Root Certificate on a mobile device or remote browser;



在手机浏览器上输入”chls.pro/ssl”去下载证书,格式是pem.

然后在手机设置里打开wifi—>高级WLAN设置—>安装证书。

3.Proxy->SSL Proxying Settings..

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fiddler wireshark charles