Skip to content

Instantly share code, notes, and snippets.

@oniksfly
Last active November 28, 2017 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oniksfly/f9595a62f778c57b43e0523cb86136a2 to your computer and use it in GitHub Desktop.
Save oniksfly/f9595a62f778c57b43e0523cb86136a2 to your computer and use it in GitHub Desktop.
Get TCP dump for iOS device
# Attach iOS device to Mac and create virtual network
# Use real iOS UUID instead placeholder
# It is possible to get UUID with iTunes: just click on `Serial number` field
rvictl -s UUID
# Returns `Starting device UUID [SUCCEEDED] with interface rviX`
# Start dumping traffic
# Use real name of virtual network instead `rviX`
# To stop use `ctrl + C`
sudo tcpdump -i rviX -w ~/ios.pcap
# Remove virtual network
rvictl -x UUID
# Open dump with Wireshark
wireshark ~/ios.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment