Created
November 2, 2014 15:01
-
-
Save kkfnui/c2ae4b21e1f0e73fcc46 to your computer and use it in GitHub Desktop.
Mac 上抓去android手机数据包
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/data/local/tcpdump -s 0 -w - | busybox nc -l -p 11233 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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