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.pcapfile 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
rvi0interface. - Capture packets.
- Run:
rvictl -x <UUID>to disconnectrvi0interface. - Disconnect your iPhone from your Mac.