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 + C
to stop capturing. - Copy the
capture.pcap
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 disconnectrvi0
interface. - Disconnect your iPhone from your Mac.