Charles capture the use of tools (a)

Premise: charles description

Charles is actually a proxy server, set by themselves over the system (computer or browser) network access proxy server, and then intercepts the request and the request packet capture analysis results to achieve the purpose. The software is written in Java, it can be Windows, Mac, use on Linux. Charles' first time installation installed Java environment.

Charles' main functions:

(1) and taken Http Https network packets.

(2) supports a network request a retransmission, the rear end to facilitate debugging.

(3) to support the request to modify the network parameters.

(4) intercepts the request and the network to support dynamic modification.

(5) supports analog slow network.

The following describes how to crawl Charles of data requests over HTTPS.

Part I: Charles Andrews download package

1, Charles download package, address: https://www.charlesproxy.com/latest-release/download.do

 

 

 

2, the installation package to the local version of the system according to their corresponding selected download.

3, the download is complete, you can install directly Fool

4, after the installation is complete by https://www.zzzmode.com/mytools/charles/ , were Charles crack (currently only supports up to version V4.5.1)

Part II: Setting up Windows Agent & proxy settings APP

First, set the Agent for Windows (OS systems are basically the same)

1, Charles wanted to crawl through Windows computer in HTTPS package is very simple, first open the Charles, the interface is as follows:

2, select help> ssl proxying> install charles root Certificate certificate is installed,

After selecting the pop-up installation mounted certificate Certificate Options elastic block, as shown below:

Click Install Certificate, select the local computer, click Next, enter the following interface:

Choose the second option, and then select Browse> Trusted Root Certification Agency, click OK> Next> Finish to configure successfully.

3. Select the proxy> Windows proxy, and then open the browser Baidu found to be normal crawling HTTPS-package.

Second, set the proxy APP

1, open Charles capture tool, as described above the interface;

2. Select Proxy | Proxy Settings, pop proxy settings tab, check the Enabling transparent HTTP proxying

3 arranged side proxy APP

3.1 First determine the address of the PC computer, run> cmd> ipconfig, as shown below:

3.2 Huawei phone, for example, select Settings> Wireless & networks> WLAN, long press to choose their own network, as shown below:

3.3 Select Modify network, the next screen, select the Advanced Options> Agent is set to Manual, and enter the IP address and port number at the bottom of the PC, you can choose to save Filling is completed, as shown below:

4、选择help>SSL Proxying>install charles root Certificate On a mobile Device OR Remote Browser,如下图:

Shells given block, enter the address in the playing box APP browser to download and install a certificate.

5, APP browser address input chls.pro/ssl download the certificate.

6, after the download is complete, if the certificate is a certificate can be installed directly at the end .cer, .pem If you need to manually modify the file extension in the installation

7, after the certificate has been installed, the access www.baidu.com by APP, we found normal APP end to grab from HTTPS packets.

=====================================================

Problems encountered:

1, after Charles configured, after the end of APP finished configuring the proxy, enter the address to download the certificate, still can not download a certificate, suggesting that a network error

Solution: Turn off the Windows firewall can.

Turn off the firewall approach:

1. Go to Control Panel \ System and Security \ Security and Maintenance \ Advanced Setup

2, open as shown in FIG elastic block, select Firewall property

3, then the FIG inbound links all three options are not allowed to mark.

 

Guess you like

Origin www.cnblogs.com/beginner-boy/p/11780077.html