ubuntu使用抓包工具,charles


參考官網:https://www.charlesproxy.com/documentation/installation/apt-repository/

wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add 
sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'
sudo apt-get update
sudo apt-get install charles-proxy

本地8888被占用了,就改成了8989

然后,配置網絡

然后就可以使用了。

# ifconfig
enp3s0    Link encap:以太網  硬件地址 2c:4d:54:65:de:6e  
          inet 地址:192.168.1.228  廣播:192.168.1.255  掩碼:255.255.255.0
          inet6 地址: fe80::94ac:7b8b:f536:b07d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  躍點數:1
          接收數據包:52748 錯誤:0 丟棄:0 過載:0 幀數:0
          發送數據包:32342 錯誤:0 丟棄:0 過載:0 載波:0
          碰撞:0 發送隊列長度:1000 
          接收字節:53700491 (53.7 MB)  發送字節:5451150 (5.4 MB)

lo        Link encap:本地環回  
          inet 地址:127.0.0.1  掩碼:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  躍點數:1
          接收數據包:2194 錯誤:0 丟棄:0 過載:0 幀數:0
          發送數據包:2194 錯誤:0 丟棄:0 過載:0 載波:0
          碰撞:0 發送隊列長度:1000 
          接收字節:586202 (586.2 KB)  發送字節:586202 (586.2 KB)

卸載

sudo apt-get remove charles-proxy

安裝SwitchyOmega 插件

Proxy - Proxy SSL Settings - Add

設置完畢代理之后,訪問域名chls.pro/ssl會自動下載一個pem后綴的證書。
``charles-proxy-ssl-proxying-certificate.pem```

安裝證書

手機安裝證書(訪問鏈接chls.pro/ssl




免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM