android安装和使用tcpdump

0x01.下载

下载连接如下:
http://www.androidtcpdump.com/android-tcpdump/downloads

0x02.copy到手机上(root过)

➜  ~ adb push ~/Downloads/tcpdump /storage/sdcard0/tcpdump
/home/iamcxl/Downloads/tcpdump...ed. 4.9 MB/s (2057576 bytes in 0.402s)

0x03.安装到系统目录

进入adb shell,然后再获取su权限.

➜  ~ adb shell
shell@ja3gduosctc:/ $ su
1|root@ja3gduosctc:/ # cp /storage/sdcard0/tcpdump /system/bin/tcpdump

0x04.给tcpdump添加执行权限

root@ja3gduosctc:/ # chmod 755 /system/bin/tcpdump

0x05.执行tcpdump

1|shell@ja3gduosctc:/system/bin $ su
root@ja3gduosctc:/system/bin # ./tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes

0x06.抓包分析

待续…

你可能感兴趣的:(工具类)