charless鏈接: https://www.charlesproxy.com/download/
netfox鏈接:https://github.com/kasketis/netfox
wireshark鏈接:https://www.wireshark.org/download.html
使用教程
charles使用:
1.Charles->Proxy->Proxies,設(shè)置http端口號。
2.設(shè)備網(wǎng)絡(luò)設(shè)置代理,ip寫mac的ip,端口號寫上面的。
注意:如果網(wǎng)絡(luò)請求是https格式,記得到Charles->Proxy->SSL Proxy Settings添加要捕獲的域名。除了一般的網(wǎng)路請求捕獲之外,還可以mock這些請求等等。
wireshark使用:
- rvictl -s UDID - (id of device 20 chars, you can locate 4t in iTunes or organiser in Xcode)
- sudo launchctl list com.apple.rpmuxd
- sudo tcpdump -n -t -i rvi0 -q tcp OR just sudo tcpdump -i rvi0 -n
- Wireshar選擇網(wǎng)卡rvi0,開始捕獲
netfox使用:
使用'pod'直接將netfox導(dǎo)入使用:
- swift:NFX.sharedInstance().start()
- objective-c:[[NFX sharedInstance] start];