Does anyone know if there is a packet capturing application for the iPhone?
asked 08 Jan '13, 04:25
converted to question 11 Jan '13, 14:15
Guy Harris ♦♦
1.Connect your iOS device to your Mac via USB.
2.Get the UDID for the connected device from iTunes or organiser.
3.Open terminal in your Mac
4.type the following commands in the terminal
$ ifconfig -l // First get the current list of interfaces.
$ rvictl -s <udid> // Then run the tool with the UDID of the device.
$ ifconfig -l
virtual network interface, rvi0, added by the previous command.
$ sudo tcpdump -i rvi0 -w ./output.pcap // Get the traced packets and save it to a file
Note : output.pacp is the packet traced file and will be located in the systems root directory
When you're done you can stop the process with the following command.
$ rvictl -x <udid>
open the .pacp using wireshark and do your default procedures. Thats it !!!!!!!!
answered 06 Oct '14, 22:09
As noted, you would either need to run the program as root, or arrange that, each time the iPhone boots, a script of some sort is run to change the permissions of the
However, you can get machines running iOS 5 or later to send copies of their network traffic over the USB link to a Mac (running OS X), with the Mac making that traffic appear on a fake network interface, and then run a capture program on the Mac, capturing from that fake network interface. This is done with the remote virtual interface facility. (Apple doesn't say what version of OS X is required on the Mac.)
answered 11 Jan '13, 14:21
Guy Harris ♦♦
I think the comments and answers are pretty clear. There is no way to capture 3G traffic (the requirement in your first comment) with Wireshark, as you can't run Wireshark on the iPhone (not available). You can't capture 3G traffic with Wireshark on another machine. That is not possible, unless you own some special hardware and add support for that into Wireshark. Even then it would be (most certainly) impossible to read the data due to the encryption used for 3G traffic.
However: you can capture 3G traffic on the phone itself, but only with a jailbreak. Then you can run a capture tool on the phone (tcpdump, pirni: see comments in your question) to intercept 3G traffic. Sorry, no other way for 3G traffic!
If you now want to capture wifi/wlan traffic (the statement in your last comment makes me believe that), you can do that with Wireshark by using a capturing PC with a wifi/wlan adapter and some other requirements.
Please read the WLAN Capturing Wiki: http://wiki.wireshark.org/CaptureSetup/WLAN
answered 16 Jan '13, 13:08
Kurt Knochner ♦
edited 16 Jan '13, 13:12
Maybe you can use your router to capture it.
answered 12 Oct '14, 02:25