The capture process for Android phones under root access

Source: Internet
Author: User
Tags root access

1. Computer connected to the phone, into the ADB mode: adb shell

2. Get the phone root permission: su

3. Download tcpdump;

4. Place the tcpdump in the Mobile/data/local/directory: ADB push c:\tcpdump/data/local/tcpdump

5. Give /data/local/tcpdump the corresponding permission: chmod 6755/data/local/tcpdump

6. Access Path: cd/data/local

7. Start Grab Bag:/data/local/tcpdump-i any-p-S 0-w/sdcard/test.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)

Stop grasping the packet Ctrl + C

8. Export /sdcard/test.pcap file: adb pull/sdcard/capture.pcap d:/

9. Use Wireshark to view.


This article is from "MySpace" blog, please make sure to keep this source http://wangzhaoli.blog.51cto.com/7607113/1707726

The capture process for Android phones under root access

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.