Tutorial on using the Charles packet capture tool (PC, Android, IOS)

Use the Charles packet capture tool on the computer

  1. First, you need to download and install the Charles packet capture tool. You can find the version suitable for your operating system on the official website ( https://www.charlesproxy.com/) and follow the installation wizard to install it.

  2. After the installation is complete, start Charles. If you are using it for the first time, you may see an "SSL Proxying" setting prompt box. Select Allow and install the Charles root certificate so that HTTPS requests can be crawled.

  3. After starting Charles, you will notice that the left panel shows all network requests. By default, Charles automatically crawls all HTTP and HTTPS requests on your computer.

  4. If you want to capture only requests from a specific application or domain name, you can select "Proxy" -> "SSL Proxying Settings" in the menu bar, and then add the corresponding rules.

  5. To start capturing packets, first make sure your device and computer are connected to the same LAN. Then, in the device's network settings, set the proxy to your computer's IP address and Charles' listening port (default is 8888).

  6. Now you can start performing various operations on the device, and Charles will automatically capture and display the relevant requests and responses. You can view the details of the request and even modify the request and response data.

  7. If you want to filter and search for specific requests or responses, you can use the filtering function provided by Charles. Enter a keyword in the search box in the top toolbar, and Charles will display the corresponding content based on the matching results.

  8. When you finish capturing packets, remember to turn off the proxy settings to avoid affecting other network access.

Android phone uses Charles packet capture tool

  1. First, download and install the certificate of the Charles packet capture tool on your mobile phone. The corresponding certificate file can be found on the official website ( https://www.charlesproxy.com/getssl).

  2. After installing the certificate, open your device's Settings app and go to the "Security & Privacy" or "Security" options.

  3. Find the "Trusted Credentials" or "CA Certificate" option in the security settings and add Charles' certificate.

  4. Enter the device's "Wireless and Network" or "Wi-Fi" settings, long press the currently connected Wi-Fi network, and select "Modify Network".

  5. Find the "Proxy" setting in the advanced options and set it to Manual.

  6. Enter your computer's IP address and Charles' listening port (8888 by default).

  7. After confirming the settings, restart the app on your phone and let it work. Charles automatically captures and displays related requests and responses.

Using Charles packet capture tool on iOS mobile phone

  1. First, download and install the certificate of the Charles packet capture tool on your mobile phone. The corresponding certificate file can be found on the official website ( https://www.charlesproxy.com/getssl).

  2. Once the certificate is installed, open the device's Settings app and go to the General tab.

  3. Find the "About This Mac" or "Profiles and Device Management" option in the general settings, and click to view installed profiles.

  4. Find the description file for Charles and click Install.

  5. Enter the "Wireless LAN" or "Wi-Fi" settings of the device, and select the currently connected network.

  6. Select "Manual" in the HTTP proxy option and enter your computer's IP address and Charles' listening port (the default is 8888).

  7. After confirming the settings, restart the app on your phone and let it work. Charles automatically captures and displays related requests and responses.

This is a detailed tutorial on using the Charles packet capture tool, covering how to use it on the computer and Android and iOS mobile phones. Hope to help you Oh.

おすすめ

転載: blog.csdn.net/qq_53114797/article/details/132271924