2 執(zhí)行命令如下:
? ~ adb root
restarting adbd as root
adb remote% ? ~ adb remount
remount succeeded
? ~ adb push Downloads/tcpdump /data/local/tcpdump
Downloads/tcpdump/: 782 files pushed. 2.5 MB/s (6751200 bytes in 2.528s)
? ~ adb shell chmod 6755 /data/local/tcpdump
? ~
3 開始抓包
adb shell tcpdump -w /data/capture0.pcap
也可以添加命令抓取一定規(guī)則的數(shù)據(jù)包
4 導(dǎo)出數(shù)據(jù)寶
? ~ adb pull /data/capture0.pcap Desktop/tcpdump_data/
5 使用Wireshark分析數(shù)據(jù)包
TCPDUMP命令詳解:
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者