by fdsary · 12y ago · 0 comments
After doing `sudo tcpdump -In -i en0 -s 2048 -A dst i.instagram.com`, and using every instagram feature from my iPhone, nothing happens in the terminal.
```
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on en0, link-type IEEE802_11_RADIO (802.11 plus radiotap header), capture size 2048 bytes
```
I try running with -v and -vv, but no difference (except it doesn't suggest running in verbose more).
After hitting C-c to stop the program, it outputs
```
^C
0 packets captured
29816 packets received by filter
0 packets dropped by kernel
```
So there's a lot of things being captured, but the filter does not catch my Instagram activity. I'm logged in there, refreshing, getting images, getting followers/following, etc.
EDIT: oh shit, HN doenst do markdown. That sucks.
1. Plug in your iPhone/iPad into your computer via USB cable
2. Go into Xcode Organizer and find your iDevice's UID
3. Hop over to terminal and type 'rvictl -s <UID>'
4. Type 'sudo tcpdump -n -i rvi0 -s 2048 -A dst i.instagram.com'
5. Open Instagram on the device, and the packet info should appear in terminal. The rest is the same
6. When you're done you can type 'rvictl -x <UID>'EDIT: I'm not sure -In work with default drivers, but I'll test with my private Mac at home later.
You can also prepend your lines with two spaces for pre-formatted text/code