Skip to content

Instantly share code, notes, and snippets.

@kkfnui
Created November 2, 2014 15:01
Show Gist options
  • Save kkfnui/c2ae4b21e1f0e73fcc46 to your computer and use it in GitHub Desktop.
Save kkfnui/c2ae4b21e1f0e73fcc46 to your computer and use it in GitHub Desktop.
Mac 上抓去android手机数据包
/data/local/tcpdump -s 0 -w - | busybox nc -l -p 11233
adb root
adb shell < adb_tcpdump.sh &
Apid=$!
sleep 1
adb forward tcp:11233 tcp:11233
sleep 1
mkfifo /tmp/sharkfin
wireshark -k -i /tmp/sharkfin &
nc 127.0.0.1 11233 > /tmp/sharkfin
kill -9 $Apid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment