[Android Pro] uses tcpdump and Wireshark to analyze Android network requests

Source: Internet
Author: User

One: tcpdump operation Flow

1. The phone must have root privileges

2. Download tcpdump http://www.strazzere.com/android/tcpdump

3. adb push c:\wherever_you_put{color}tcpdump /data/local/tcpdump

4. adb shell chmod 6755/data/local/tcpdump

5, adb shell, su get root permission

6, Cd/data/local

7,./tcpdump-i Any-p-S 0-w/sdcard/capture.pcap

Command parameters:

# '-I any ': Listen on any network interface

# "-P": Disable promiscuous mode (doesn ' t work anyway)

# "-S 0": Capture the entire packet

# "-W": Write packets to a file (rather than printing to stdout)

... do whatever your want to capture and then ^c to stop it ...

8, ADB pull/sdcard/capture.pcap d:/

9, on the computer with Wireshark open Capture.pcap can analyze log

Two: Wireshark operation Flow1: Double-click the Capture.pcap file above to open with Wireshark

2: In filter filter out input: HTTP, enter, will be able to filter out all the HTTP.

[Android Pro] uses tcpdump and Wireshark to analyze Android network requests

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.