首页 > 代码库 > tcpdump抓包

tcpdump抓包

@echo off

adb remount

adb shell rm -r /data/local/tcpdump

adb push tcpdump /data/local/tcpdump

adb shell chmod 6755 /data/local/tcpdump

adb shell rm -r /sdcard/capture.pcap

echo "抓包结束后可以按ctrl+c"

adb shell  /data/local/tcpdump -i any -p -s 0 -w /sdcard/capture.pcap &

pause

@echo off

del %~dp0rezults\capture.pcap

adb remount

adb pull /sdcard/capture.pcap %~dp0rezults


tcpdump抓包