Fiddler抓包手機APP資料,wireshark,charles
阿新 • • 發佈:2019-02-14
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..