4

Operation guide

Operating environment:

  • Computer system: Mac OS
  • mobile phone system: iOS 12 and above/Android
  • Charles version: V4.5.6

Step 1: Install Charles certificate to Mac

1. Start Charles, select Help-->SSL Proxying→Install Charles Root Certificate
image.png

2. At this time, the "Keychain Access" APP will be launched, and the newly installed certificate will be found. The name of the certificate: Charles Proxy CA. If you can't find it, you can search it in the search box.
image.png

3. Select the certificate and click to show introduction.
image.png

4. Change the certificate trust authority. Change to always trust, and close the window and enter the password to save.
image.png

5. Move and copy the certificate to the "system". The certificate on the computer side is now configured!
image.png

6. Set the HTTPS port to capture packets, click Charles-->Proxy-->SSL Proxying Settings, the following pop-up window appears, click "Enable SSL Proxying", click "Add"
image.png

7. Input according to the figure and click save. At this point, the computer configuration has been completed!
image.png

Step 2: Install the Charles certificate to the phone

premise:

1. First check the computer IP address, click Charles-->Help→Local IP Address
image.png

2. The mobile phone and the computer must be on the same Wi-Fi.

iPhone certificate installation:

1. iPhone, Wi-Fi setting proxy. Steps: Settings → WIFI --> click i next to Wi-Fi
image.png

2. Draw to the bottom and click Configure proxy
image.png

3. Configure the proxy, IP is your computer's IP, enter 8888 for the port, and click Save
image.png

4. Then open the Safari browser and visit: chls.pro/ssl. At this time, the connection prompt on the computer, click allow.
image.png

5. At this time, the phone will prompt to download the description file, click Allow
image.png

6. After saving, click Settings-->General→Description File to install the file just downloaded
image.png

7. After the installation is complete, click Settings --> General → About this machine, scroll down to the bottom, click Certificate Trust Settings, and turn on the Just Trust switch.
image.png

8. You're done, now you can happily grab HTTPS packets. And visit the company intranet.

Android certificate installation:

Take the Xiaomi mobile phone as an example.

1. Set up a Wi-Fi proxy. Settings→WI-FI→Proxy settings, IP is your computer’s IP, port input 8888, save
image.png

2. Use Chrome browser to visit "chls.pro/ssl" (Note: Chrome browser must be used, Android domestic browser will treat the certificate as a downloaded file and cannot be installed directly), at this time, the connection prompt on the computer, click allow allow.
image.png

3. Download the certificate and install it (you need to set the phone lock screen password in advance), see the figure below, enter the name, and click OK.
image.png

4. You're done! At this point you can happily grab HTTPS packets. And visit the company intranet.

Remark:

Some mobile apps do not allow packet capture. There are roughly two specific implementation principles:

1. The app framework can detect the proxy. If you are accessing through the proxy port, the connection will be refused.

2. The built-in HTTPS certificate of the mobile phone has done a double-end verification. If you are interested in specific principles, you can go to Google.


起风了
120 声望35 粉丝

北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。