Use tcpdump and wireshark to analyze network packet capture for android phones

Source: Internet
Author: User


A simple network packet capture Analysis Method for mobile phones:


1. Compile tcpdump

Download the source code from the official website of tcpdump and compile

Tcpdump Official Website: http://www.tcpdump.org/


2. Install tcpdump on your phone

You only need to copy the compiled tcpdump program to your mobile phone and grant the permission

Adb push /Data/local/tcpdump adb shell su chmod 6755/data/local/tcpdump

3. Use tcpdump to start packet capture

Cd/data/local/

Tcpdump-p-vv-s 0-w/sdcard/capture. pcap


For more tcpdump command usage, refer to http://www.tcpdump.org/manpages/tcpdump.1.html


4. Execute the task you want to analyze


5. Terminate network packet capture (ctrl + C)


6. Copy the network packet capture data back to linux

Adb pull/sdcard/capture. pcap


7. Use wireshark to analyze tcpdump packet capture data

Download wireshark: http://www.wireshark.org/download.html

Start analysis-http://wiresharkdownloads.riverbed.com/video/wireshark/introduction-to-wireshark/



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.