Home The Quantizer> Tutorials> Wireshark iPhone traffic capture

Wireshark iPhone traffic capture

This page explains the process to setup packet capturing of an iPhone so that it can be views by Wireshark

Install prerequisite software

  1. Install Wireshark on a mac
  2. Make sure Xcode is installed, so we have access to the command rvictl
    1. rvictl allows us to create an interface that the iPhones network traffic flows through so that we can monitor it with Wireshark
     rvictl - Remote Virtual Interface Tool starts and stops a remote packet capture instance 
     for any set of attached mobile devices. It can also provide feedback on any attached
     devices that are currently relaying packets back to this host.
    

Set up the capture interface

  1. Connect the iPhone with the Eco Plugs app to a mac via usb
  2. Figure out the UDID of the connected iPhone
    1. One way to do this is by going to About this Mac about this mac
    2. In the Overview tab select System Report...
    3. Hardware -> USB -> iPhone
      1. The format is #########-############### so put a - after the 9th digit of the serial number to get the UDID of the iPhone
        1. Ex: Serial Number:123456789123456789abcdef
        2. UDID: 123456789-123456789abcdef iPhone system report
  3. Check current interfaces
    $ ifconfig -l
    lo0 gif0 stf0 anpi0 anpi1 en3 en4 en1 en2 ap1 en0 awdl0 llw0 bridge0 utun0 utun1 utun2 en6
    
  4. Create interface to be monitored
    1. Be sure to allow access to your computer from your iPhone by accepting the prompt on the iPhone if you have not allowed this computer in the past
    $ rvictl -s 123456789-123456789abcdef
    
    Starting device 123456789-123456789abcdef [SUCCEEDED] with interface rvi0
    
  5. List devices again
    $ ifconfig -l
    lo0 gif0 stf0 anpi0 anpi1 en3 en4 en1 en2 ap1 en0 awdl0 llw0 bridge0 utun0 utun1 utun2 en6 rvi0
    
  6. rvi0 is now added to the list. Success!

View the traffic in Wireshark

  1. Just open up Wireshark and select interface rvi0 wireshark interface rvi0

©  The Quantizer