Mobile phone packet capture tool

Table of contents

1. Apple mobile phone packet capture tool Stream

1. Stream installation and configuration

 2. Stream usage (IOS mobile phone capture)

2. Android mobile phone packet capture tool (use PC-side tool Fiddler to capture packets)

1. Fiddler, test the installation and configuration of the mobile phone

2. Android mobile phone capture

3. Icon Description of the Session Window

1. Apple mobile phone packet capture tool Stream

1. Stream installation and configuration

1) Download Stream from the App Store and install it

2) After installation, open Stream, click [Start capturing packets],

A prompt box will pop up, click [Allow];

Then pop up a prompt box, click [to install the certificate]

     

3) On the HTTPS packet capture page, click [Step 1: Install CA certificate], a browser prompt will pop up, click [Allow], and the description file will prompt that the download is successful [Downloaded description file]

     

4) Find the downloaded description file in Settings--General--Description File, and click [Install]

     

 5) After the description file is successfully installed, the following screenshot is displayed

 6) In the general--about this machine--certificate trust setting, trust the newly installed certificate (it is trusted when it is displayed in green after sliding)

   

 2. Stream usage (IOS mobile phone capture)

Example: Grab browser access to Baidu package

1) Click [Start capturing packets], then open the browser and visit Baidu;

After accessing, click [Stop Capture Packet], and then click [Packet Capture History]

 

 2) Click on the packet capture history to view the packet capture records

  

3) You can switch the tab mode to find the request you want to view, such as pressing the domain name, find the request m.baidu.com, click the request, and view the request details

 

 4) Capture packet details, you can view request, response and other information

       

     

2. Android mobile phone packet capture tool (use PC-side tool Fiddler to capture packets)

1. Fiddler, test the installation and configuration of the mobile phone

Fiddler 4 download address: https://www.telerik.com/download/fiddler

After downloading, get the installation file FiddlerSetup.exe, and install it all the way for fools.

1) After the installation is complete, open Fiddler, the main interface is as follows:

  • Switch to Inspectors to view the request parameters and return parameters of the corresponding request;
  • To display different content and formats of request parameters and return parameters, you can switch the Tab button at the top of the corresponding display window in the figure, such as Headers, WebForms, Raw, Json, etc.

 2) Fiddler settings allow remote computer connections

Setting steps: Tools-->Options-->Connections-->check Allow remote computers to connect-->click OK, other defaults are fine, as shown in the figure below (check 8888 in the page as the default port number , the mobile phone configuration will be used later); after checking, if there is a pop-up confirmation page, click [OK].

 3) Set mobile network proxy

Before setting, first obtain the IPv4 address of the computer where Fiddler is installed, and enter ipconfig in cmd, as shown in the following figure:

After finding the IPv4 address of the computer, in the mobile phone settings - WLAN, find the WIFI shared by the mobile phone and the computer, modify the proxy to manual, enter the host name (the IPv4 address found, such as 192.168.2.3), port (set in Fiddler The monitoring port number is 8888), click Save, and the following figure takes Redmi K40 Pro as an example: 

 

4) After the mobile phone is set up, after restarting Fiddler, you can capture the http request on the mobile phone ;

Example: Open the browser on the mobile phone to access the Baidu page (the above is the request header, and the bottom is the response body - Baidu HTML)


 

5) If you want to request packet capture for https , you also need to set up Fiddler and install a certificate on the phone;

1> Set Fiddler: Allow capturing HTTPS connections

Setting steps: Tools-->Options-->HTTPS-->check Decrypt HTTPS traffic-->check Ignore server certificate errors-->click OK, save the settings, restart Fiddler; (restart Fiddler will take effect)

 2> Mobile phone installation certificate

Open the browser on the mobile phone, enter the IPv4 proxy address, such as 192.168.2.3:8888, and click FiddlerRoot certificate to download the certificate in the opened web page;

Note: Android phones are fine at this step, and Apple phones still need to trust the downloaded certificate in the phone settings;

2. Android mobile phone capture

Example: Mobile browser accesses Baidu (or other APPs)

3. Icon Description of the Session Window

Guess you like

Origin blog.csdn.net/nikeylee/article/details/125363582