How to grab a bag by mobile phone

Source: Internet
Author: User

First, through the tcpdump grab bag
Introduction to the Android platform as an example tcpdump grab bag
    1. Download Tcpdump First
    2. Push tcpdump to Mobile: adb push tcpdump/data/local
    3. Modify tcpdump permissions: adb shell chmod 777/data/local/tcpdump
    4. Operation phone, shortcut key CTRL + C can stop the package, will tcpdump open with Wireshark, analysis
Second, the computer to do WiFi hotspot, mobile phone connected on the computer using Wireshark grab Bag
This method does not need root, and is suitable for all kinds of mobile phones (IOS, Android, etc.) with WiFi function. As long as the computer's wireless card has the wireless load-carrying function, you can. Here's how:
    1. Make a computer network a hotspot
    2. When the WiFi hotspot is turned on, the phone being tested is connected to the hotspot;
    3. Start Wireshark, select the network card as the hotspot, click Start to grab the packet;
    4. Operation of the mobile phone, you can crawl to the phone all the network interaction with the packet, if need to stop, directly click on the Wireshark stop.
Third, use Fiddler to crawl
This method only adapts to crawling HTTP. The biggest advantage of this approach is that HTTP can be intercepted or received, and HTTP request and response data can be modified. Therefore, this method can be used to simulate some special scenarios (such as packet not responding, simulating some difficult error codes, etc.).
This method is best to have a computer with a wireless card.
    1. PC and phone connected to the same LAN (e.g. PC and phone connected to the same WiFi)
    2. The computer opens Fiddler, under Fiddler, Tools-fiddler Options, set the listening port number under the Connections tab and tick "Allow remote computers connect", click "OK"
    3. Mobile phone under the WiFi option, select * * for "manual", and then the host name to fill in the computer's IP address, the port number is filled in just set the "8888" after the save.
    4. After the setup is complete, the direct operation of the phone can be seen on the computer's Fiddler on the HTTP code stream.

How to grab a bag by mobile phone

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.