当前位置:网站首页>Charles packet capture tool learning record
Charles packet capture tool learning record
2022-08-03 08:02:00 【Brother Mu Yao】
Background
I need to perform packet capture analysis on an Android APP, but fiddler cannot be installed on macOS, so I installed Charles.
Installation address: https://macwk.com/soft/charles
Reference tutorial: https://www.bilibili.com/video/BV1mQ4y1N7dn
Interface common functions
Main navigation bar:
Request bar:
Charles Port Configuration
The default is port 8888, you can also change it yourself.Remember to check "Enable transparent HTTP proxying", that is, transparent proxying (requests can be redirected without modifying the request and response).
Client Access Control
Control which IP clients can go through Charles' proxy server.After checking the lower left corner of the right image, a visit will let you confirm it.
Configure the proxy address for the client (win/mac/android)
For Windows, it needs to be configured as follows in the settings:
The ip can be found here

For macOS,Configure the proxy address as follows: 
If Charles and needIf the mac that captures the package is the same, you can use the shortcut method to set the proxy, as shown in the figure below, just check it.
For Android devices, directly long press the connected wifi, and then configure the manual proxy, as shown in the figure: 
Solve the problem of https capture and garbled characters
Solution: First, configure the proxy in Charles (Proxy->SSL Proxying Settings, as shown below).
Then, install ssl certificate on different clients.
For Windows machines:
For macOS: installSelect "Login" for the certificate, not icloud.
Click the lock to enable SSL proxy.
For Android devices, visit http://www.charlesproxy.com/getssl/ or http://chls.pro/ssl to download and install the certificate (Xiaomi mobile phone: search for the CA certificate in the settings, click to install).
Traffic Configuration (Weak Network Test Scenario)
The steps are as follows.
Breakpoint debugging
Steps: Add a breakpoint - send a request - intercept and modify the request content - send a request
边栏推荐
猜你喜欢
随机推荐
[Hello World] 二分查找笔记
“碳中和”愿景下,什么样的数据中心才是我们需要的?
Fortify白盒神器20.1.1下载及安装(非百度网盘)
【图像边缘检测】基于matlab灰度图像的积累加权边缘检测【含Matlab源码 2010期】
如何像用自来水一样使用数据库?|腾讯云数据库TDSQL-C
mysql 8.0.12 安装配置方法并--设置修改密码
SSM整合流程
升级
002-字段不为null
- display image API OpenCV 】 【 imshow () to a depth (data type) at different image processing methods
Pyspark - an empty string is replaced by None
用diskpart的offline命令弹出顽固硬盘
【云原生--Kubernetes】Pod重启策略
Postman will return to results generated CSV file to the local interface
PostMan使用,访问路径@RequestMapping
static数据成员
STL-vector容器
WordPress主题-B2美化通用子主题商业运营版
PMP每日一练 | 考试不迷路-8.2(包含敏捷+多选)
pyspark @udf loop using variable problem









