Packet capture process for Android mobile phones with root permissions

Source: Internet
Author: User

Packet capture process for Android mobile phones with root permissions
1. connect the computer to the mobile phone and enter adb mode: adb shell2. get the root permission of the mobile phone: su3. download tcpdump; 4. put tcpdump to the mobile phone/data/local/directory: adb push c: \ tcpdump/data/local/tcpdump5. grant/data/local/tcpdump the corresponding permissions: chmod 6755/data/local/tcpdump6. path: cd/data/local7. start to capture packets:/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 ent Ire packet # "-w": write packets to a file (rather than printing to stdout) Stop packet capture ctrl + c8. export/sdcard/test. pcap file: adb pull/sdcard/capture. pcap d:/9. use WireShark to view data.

Related Article

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.