pmeenan / idevice-packet-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idevice-packet-analyzer

iOS device usb packet analyser and prettifier To listen to usb traffic use socat

It can be installed with homebrew

brew install socat

iOS-based devices talk with host via usbmuxd process and it's unix socket located at /var/run/usbmuxd. To sniff the traffic you must replace original socket with fake one, redirect the traffic and log data.

sudo mv /var/run/usbmuxd /var/run/usbmuxd_real
sudo socat -t100 -x -v \
  UNIX-LISTEN:/var/run/usbmuxd,mode=777,reuseaddr,fork \
  UNIX-CONNECT:/var/run/usbmuxd_real \
  > /tmp/usbmuxd.log 2>&1

Use ioslog2html.sh to convert your log to html representation:

/bin/bash ioslog2html.sh /tmp/usbmuxd.log ~/Desktop/usbmuxd.log.html

You may have issues with base64-encoded images transfers, they may corrupt log, working on it.

About


Languages

Language:Shell 50.8%Language:Awk 33.8%Language:HTML 15.4%