14.04.2013 Views

The Path to Better Debugging on iOS

The Path to Better Debugging on iOS

The Path to Better Debugging on iOS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•<br />

•<br />

Capturing Traffic<br />

(Passive)<br />

Pre-<strong>iOS</strong> 5, tether device using Internet Sharing & capture WIFI<br />

interface traffic<br />

<strong>iOS</strong> 5+, tether device using USB & use rvictl<br />

$ rvictl -i "$<strong>iOS</strong>_DEVICE_UDID" # Create a remote virtual interface<br />

$ rvictl -l # List all remote virtual interfaces<br />

$ rvictl -x "$<strong>iOS</strong>_DEVICE_UDID" # Delete a remote virtual interface<br />

$ tcpdump -n -t -i rvi0 -q -A tcp # Log TCP traffic via tcpdump<br />

$ wireshark -i rvi0 # Capture traffic via Wireshark<br />

Sessi<strong>on</strong> 204 — Core OS Networking

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!