Packet Capture
Android
- Root your phone.
- Install termux and tcpdump.
- Run:
tcpdump -i any -p -s 0 -w /sdcard/capture.pcap. - Capture packets.
- Run:
Ctrl + Cto stop capturing. - Copy the capture file to your computer.
iOS
- Connect your iPhone to your Mac.
- Find out your iPhone's UUID through Xcode (Xcode -> Window -> Devices and Simulators).
- Run:
rvictl -s <UUID>. - Start Wireshark and select the rvi0 interface.
- Capture packets.
- Run:
rvictl -x <UUID>to disconnect rvi0 interface. - Disconnect your iPhone from your Mac.