AndroidはTCPDUMPを使用してパケットをフェッチします



Android Uses It Tcpdump Fetch Packets



1ダウンロード tcpdump

2次のようにコマンドを実行します。

➜ ~ 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 You can also add commands to fetch packets of certain rules.

4データの宝物をエクスポートする

➜ ~ adb pull /data/capture0.pcap Desktop/tcpdump_data/

5Wiresharkを使用してパケットを分析します

詳細なTCPDUMPコマンド: