Charles - Night God simulator certificate installation App capture package

Charles - Night God simulator certificate installation App capture package



foreword

Packet capture concept: Packet capture is to intercept, resend, edit, and transfer data packets sent and received by network transmission, and it is also used to check network security.
MT Manager download link - extraction code: pwjj: https://pan.baidu.com/s/1dH-TeB6gChPDYoYpH1aXQg?pwd=pwjj


提示:以下是本篇文章正文内容,下面案例可供参考

1. Software installation

1. Openssl installation

1.1 Download and install

Official address: https://www.openssl.org/source/
Big coffee packaged (recommended) download address: http://slproweb.com/products/Win32OpenSSL.html
My device is Windows 64 bit,
insert image description here
download is complete
insert image description here
, start installation
insert image description here
selection installation manual
insert image description here
insert image description here
insert image description here

1.2 Configure environment variables

Create a new system variable OPENSSL_HOME, set the variable value to (absolute path) bin in the software installation directory,
insert image description here
edit the user variable path, create a new %OPENSSL_HOME%, and finally click OK

insert image description here

1.3 To view the openssl version, enter the command: openssl version

insert image description here

2. Yeshen simulator installation

Official download link: https://www.yeshen.com/

1.1 Download and install

The download is complete
insert image description here
and the installation starts
insert image description here
insert image description here

1.2 Tool preparation, MT manager

Apk download address: https://download.csdn.net/download/EXIxiaozhou/86937581
Download the apk file on Windows, open the emulator and drag the apk file directly into the emulator window to complete the installation, and the installation will be completed automatically
insert image description here

3.Charles installation

Official download: https://www.charlesproxy.com/latest-release/download.do
Keep clicking Next to complete the installation
insert image description here
insert image description here

2. Charles installs the certificate and captures the package

1.Charles Crack

1. It can be used without cracking, but Charles will automatically restart every time it is used;
2. You can search for articles related to Charles cracking on Baidu to obtain the registration code;
3. Enter the registration code and click Register to
insert image description here
insert image description here
install the Charles certificate For Android system certificate: https://www.jianshu.com/p/2f85142023e8

2. Install the certificate and export it

Click: Help > SSL Proxying > Save Charles Root Certificate...
insert image description hereNote: There is a pit here. After selecting the download directory, you need to add "\xxx" after the folder name to download the certificate to the xxx.pem file in this directory , otherwise the certificate will be downloaded to the upper level directory, and the certificate name is the name of the last level directory;
insert image description here
insert image description here

3. Turn on proxy mode

Click Proxy > SSL Proxying Setting, check Enable SSL Proxying, and add proxy domain name/port
insert image description here

4. Certificate Formatting

前面介绍了如何安装openssl
1. Check the hash value: openssl x509 -subject_hash_old -in “xxx.pem”
2. Change to the corresponding file name, pay attention to the suffix (.0): ren “My File.pem” 326c9e5c.0
insert image description here

5. Configure the certificate into the emulator through the MT manager

1. Select the shared directory between the local and the emulator
insert image description here
2. Open the MT manager app
insert image description here
insert image description here
3. Copy the certificate to the emulator directory: system/etc/security/cacerts/
insert image description here
4. Go to the emulator installation directory of the local windows
4.1 Check the connection status: nox_adb.exe devices
4.2 Determine whether there is root authority (default enabled): nox_adb.exe root
4.3 Enter the shell: adb shell
4.4 Obtain super user authority: su
4.5 Modify the read and write authority of the system directory: mount -o remount,rw /system
4.6 Open certificate authority: chmod 644 /system/etc/security/cacerts/326c9e5c.0
insert image description here

6. Emulator WiFi fills in the IP and port of the Charles proxy

1. Obtain the IP and port of the Charles proxy
1.1 Check the IP
insert image description here
1.2 Check the port
insert image description here
2. Open the emulator WiFi and fill in the IP and port of the Charles proxy
insert image description here
insert image description here

7. Example of packet capture

insert image description here

Guess you like

Origin blog.csdn.net/EXIxiaozhou/article/details/128619988