ubuntu 安装charles

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wild46cat/article/details/81638730

如题,下面上货。

1、首先需要进入到官网。

https://www.charlesproxy.com/documentation/installation/apt-repository/

2、输入如下指令进行安装

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

3、下面是详细的内容:

APT repository

Charles has an APT repository for Debian-based Linux distributions.

NB: The keys for the repo changed on 26 July 2016, to utilise a larger key size and stronger digests. Existing users of the APT repository will need to import the new public key. The new public key is at the same URL as the old public key, therefore repeat the apt-key add step below to add it. Finally, run apt-get update to use the new key.

First install the GPG public key for the repository so you can verify that the packages are correctly signed. The current public key id is 1AD28806 and its fingerprint is 4BA7 DB85 7B57 0089 7420  96E1 5F16 B97C 1AD2 8806:

wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -

or alternatively:

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1AD28806

Then add the repository to your sources:

sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'

Then update your sources and install Charles:

sudo apt-get update sudo apt-get install charles-proxy

The package creates a "charles" command in /usr/bin, and adds Charles in your application menus in your window manager.

You may also install the beta track of Charles which is called charles-proxy-beta.

Charles 3

To install Charles 3, use the package charles-proxy3. You can have both Charles 4 and Charles 3 installed at the same time.

The package creates a "charles3" command in /usr/bin, and adds Charles in your application menues in your window manager.

最后如果需要破解,那么要这样替换charles.jar这个文件。

将/usr/lib/charles-proxy/下的Charles.jar 替换掉,重新启动软件即可

后记:

最常见的问题是在进行https的包进行分析的时候出现乱码,首先需要在手机端安装证书,然后是参考下面的文章:

https://www.jianshu.com/p/ddef21c3b9ba

猜你喜欢

转载自blog.csdn.net/wild46cat/article/details/81638730