Ubuntu18.04 install Fiddler

Ubuntu18.04 install Fiddler

Let’s start the installation process

2018-11-30更新:教程已更新,请移步至Update Link
2018-09-25更新:也可按照官网sudo apt-get install mono-complete来安装mono

First

从官网下载最新版fiddler-linux.zip
Ubuntu18.04 install Fiddler_第1张图片

Second

1.从官网下载并安装Mono,官网介绍的很详细,一步一步安装即可。
Ubuntu18.04 install Fiddler_第2张图片
2.验证Mono是否安装完成
(https://www.mono-project.com/docs/getting-started/mono-basics/)
Ubuntu18.04 install Fiddler_第3张图片

Third

1.进入 /usr/lib/mono/,查看mono的版本

cd /usr/lib/mono/
ls
2.0-api  4.0-api    4.5.2-api  4.6.2-api  4.7-api    lldb                       msbuild
3.5-api  4.5        4.5-api    4.6-api    aot-cache  llvm                       xbuild
4.0      4.5.1-api  4.6.1-api  4.7.1-api  gac        mono-configuration-crypto  xbuild-frameworks

2.运行,把这里的4.5换成你下载的mono的版本号

/usr/lib/mono/4.5/mozroots.exe --import --sync

Fourth

解压fiddler-linux.zip,通过mono Fiddler.exe启动Fiddle

unzip fiddler-linux.zip
cd fiddler-linux
mono Fiddler.exe

Ubuntu18.04 install Fiddler_第4张图片

** 如果在执行过程中出现如下错误 **

mono Fiddler.exe
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

打开.bashrc

sudo gedit ~/.bashrc

在最后加入

export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/

OK,You are done.

Five

设置手机抓包
1.打开Fiddler, Tools-> Options -> Connections -> Allow remote computers to connect
Ubuntu18.04 install Fiddler_第5张图片
2.查看本机IP

ifconfig
enx000ec68fee4e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.102  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::a3e3:9e12:71d8:da55  prefixlen 64  scopeid 0x20<link>
        ether 00:0e:c6:8f:ee:4e  txqueuelen 1000  (以太网)
        RX packets 555054  bytes 682023948 (682.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 495509  bytes 52200999 (52.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (本地环回)
        RX packets 16790  bytes 1274117 (1.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16790  bytes 1274117 (1.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

3.打开Android设备的“设置”->“WLAN”,找到你要连接的网络,在上面长按,然后选择“修改网络”,弹出网络设置对话框,然后勾选“显示高级选项”。

4.在“代理”后面的输入框选择“手动”,在“代理服务器主机名”后面的输入框输入电脑的ip地址,在“代理服务器端口”后面的输入框输入8888,然后点击“保存”按钮。

5.启动Android设备中的浏览器,访问网页即可在Fiddler中可以看到完成的请求和响应数据。

未完待续

你可能感兴趣的:(Software,Installation)