Introduction to the

Charles is a common network packet interception tool on PC. In mobile development, we often need to intercept network packets for analysis in order to debug the network communication protocol with the server. In addition to debugging ports for mobile development, Charles can also be used to analyze communication protocols for third-party applications. In conjunction with Charles’ SSL capabilities, Charles can also analyze the Https protocol.

Charles implements interception and analysis of network packets by setting himself up as the network access proxy server of the system, through which all network access requests are processed.

The main functions of Charles include:

  • Intercepts Http and Https network packets.
  • Supports resending network requests, facilitating back-end debugging.
  • Network request parameters can be modified.
  • Support network request interception and dynamic modification.
  • Support analog slow network.

Another tool in the same category is Fidder

Use a background

When debugging the interface with the company’s App 📱 colleagues, sometimes some very puzzling problems may occur. Sometimes it can be difficult to determine whether the problem is a front-end display Bug or an interface data exception.

Usually at this point, the back end may need to go to the server to look at the log and troubleshoot with the log data. But limited to tool networks and other complex situations, this approach is actually quite inefficient.

This is the time to need such a tool, can be running App interface returns in real time. Combined with the front view display, the cause of the problem can be found in a very short time. This will fix the problem quickly.

Download, crack

Official website download address. address

Charles is a paid software with a 30-day free trial. After the trial period, users who have not paid will still be able to use the app for no more than 30 minutes at a time, and there will be a 10-second delay on startup. Therefore, the payment plan is quite user friendly, even if you don’t pay for a long time, you can still use the full software features.

However, I chose to crack 😂, and I used Charles to improve the troubleshooting time. And I can’t stand it when you do this… It is easier to crack 💩. Ha ha ha ha

Cracking site

Select your current version and download a Jar package.

Charles configuration

When Charles is installed, Http packages can be captured at this point, but the interface we provide for the App is usually Https. So we need to install the certificate.

Install the certificate

Help -> SSL Proxying ->Install Charles Root Certificate

Once the certificate is installed, you need to trust it. It is ok

Https fetching Configuration

IPhone packet capture configuration

The main reason why iPhone capture is here is because Android capture configuration is too cumbersome. The iPhone then simply needs to install a certificate.

As shown above, click Install Charles Root Certificate on a Mobile Device Or Remote Browser

Click 192.168.1.106:8888 in the prompt box to set the network proxy address for the mobile phone. CHLS. Pro/SSL is the address for downloading the certificate.

Make sure your phone and PC are on the same network, visit CHLS. Pro/SSL to download and install the certificate. Then trust the certificate.

Install the certificate

Trust certificate

Settings – General – About native – Certificate Trust Settings – Check the installed certificate

Mobile configuration Agent

After configuring the WIFI proxy to 192.168.1.106, you can smoothly grab the MOBILE phone’s Https packets.

Once the appeal Settings are complete, the iPhone is ready to grab bags.

Configure Chrome packet capture

The configuration of Chrome packet capture is similar to that of mobile phones, but you also need to install the plug-in and configure the proxy.

Configure the proxy in Settings – Advanced – Proxy Configuration. Configure as the Charles agent.

Function is introduced

Repeat

Repeat an already executed request.

Application scenario: Server stress test.

Compose

To temporarily modify some request parameters, click Execute to send the modified request.

Rewrite

The Rewrite function is a good way to modify the results of a particular type of network request with some regular substitutions

Map Remote Config

Address from direction, proxies requests to server A to server B

Map Local Config

Replaces the response to the specified request with a local file

Open Source Project Recommendation

SCHEDULE-BILIBILI

Only Js can do anything, Js and Github Actions implement bilibilii daily automatic check-in, coins, receive rewards. 🐄 🍺

IDEA-TopTips

IDEA universe the strongest operation skills, error this project regret life. 🐄 🍺