Charles mobile phone bag capture practical tutorial

1. Charles official website download link: https://www.charlesproxy.com/download/

2. Packet capture steps:

  1. Install Charles and open it

  2. Set the proxy port on the computer: open charles->Proxy->Proxy Settings, set the proxy port, as shown in the figure

  

  3. Mobile phone settings proxy:

   1) First make sure that the phone and the computer are in the same local area network

   2) Set the WiFi proxy, change the HTTP proxy to manual -> the server address is the IP address of the packet capture computer (Windows can use ipconfig to query) -> the port is the port set by charles in step 1, as shown in the figure:

    

   3) Mobile phone download and install Charles certificate: help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser->Mobile browser input chls.pro/ssl, download and install the certificate

    Note: After installing the certificate, the IOS phone can view the installed certificate in Settings -> General -> Description File

    

       

         

   4) Trust certificate ( Note: This step is required for systems above IOS10, and this step is skipped for systems below Android and IOS10 )

    Settings->General->About Phone->Certificate Trust Settings: Trust Certificate

   

  5) Start capturing packets, operate the APP on the mobile phone, and check the packet capture status on the computer

  

3. Matters needing attention

  1) Be sure to follow the steps, otherwise you may not be able to capture packets

  2) After following the steps, the network is abnormal, it may be that there is no trusted certificate, the solution: Settings -> General -> About Phone -> Certificate Trust Settings: Trust Certificate

       3) Open the download certificate page and the certificate cannot be downloaded. The mobile phone does not configure the proxy first. Solution: Set the proxy on the mobile phone first, refer to the steps

  4) You can capture packets before, but after a period of time you can't capture packets. Maybe the IP address of the computer has changed. Solution: After the IP changes, you need to reset the proxy, install the certificate, and re-operate the capture steps.

This article is a summary of my experience in capturing packets. If you have any errors or questions, you can leave a message below or send your questions to the mailbox [email protected]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325687480&siteId=291194637