你如何监控iPhone上的网络流量? [英] How do you monitor network traffic on the iPhone?

查看:222
本文介绍了你如何监控iPhone上的网络流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在寻找一种类似Wireshark的工具,可以在与第三方合作之前在iPhone上测试第三方应用程序。有什么建议吗?

We are looking for a Wireshark-like tool to use on the iPhone to test a 3rd party application before partnering with the 3rd party. Any suggestions?

推荐答案

中间人代理,如其他答案所示,如果你是一个很好的解决方案只想查看HTTP / HTTPS流量。

A man-in-the-middle proxy, like suggested by other answers, is a good solution if you only want to see HTTP/HTTPS traffic.

数据包嗅探的最佳解决方案(尽管它仅适用于实际 iOS设备,而不适用于模拟器)我发现是使用 rvictl 此博客文章有一个很好的写作。基本上你这样做:

The best solution for packet sniffing (though it only works for actual iOS devices, not the simulator) I've found is to use rvictl. This blog post has a nice writeup. Basically you do:

rvictl -s <iphone-uid-from-xcode-organizer>

然后你用Wireshark(或你最喜欢的工具)嗅探它创建的界面,当你'重新关闭界面:

Then you sniff the interface it creates with with Wireshark (or your favorite tool), and when you're done shut down the interface with:

rvictl -x <iphone-uid-from-xcode-organizer>

这很好,因为如果你想要嗅探模拟器,你就不得不趟过流量也可以使用 rvictl 创建一个虚拟界面,只显示您插入USB端口的iOS设备的流量。

This is nice because if you want to packet sniff the simulator, you're having to wade through traffic to your local Mac as well, but rvictl creates a virtual interface that just shows you the traffic from the iOS device you've plugged into your USB port.

注意:这仅适用于Mac。

Note: this only works on a Mac.

这篇关于你如何监控iPhone上的网络流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆