iOS網(wǎng)絡(luò)請求捕獲工具-Charles,NetFox,Wireshark

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];
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容