mac下安装Fiddler抓包工具

Mono安装

首先,Mac下需要使用.Net编译后的程序,需要用到跨平台的方案Mono(现阶段微软已推出跨平台的方案.Net Core,不过暂时只支持控制台程序)。安装程序可以从http://www.mono-project.com/download/#download-mac地址下载。

我下载的5.8.0版本。

1.安装完后,在Terminal里执行以下命令(5.8.0是你的版本号):

/Library/Frameworks/Mono.framework/Versions/5.8.0/bin/mozroots --import --sync

 

2.接下来如果想要运行Fiddler,还需要把Mono加入到环境变量中。编辑.bash_profile文件:

sudo vi ~/.bash_profile

加入文本(5.8.0是你的版本号):终端里面,按i进入编辑状态,添加下面文本,按esc,然后:wq,保存退出...:

export MONO_HOME=/Library/Frameworks/Mono.framework/Versions/5.8.0

export PATH=$PATH:$MONO_HOME/bin

 

 

Fiddler的安装

从Fiddler官网https://www.telerik.com/download/fiddler下载fiddler-mac.zip的压缩包。解压到非中文字符的路径下。

Fiddler运行

打开Terminal,进入到刚才解压的Fiddler路径,执行命令运行:

sudo mono Fiddler.exe

 

修改命令运行即可:

sudo mono --arch=32 Fiddler.exe

The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all Stacktrace

解决地址:https://stackoverflow.com/questions/45776247/mono32-wont-work-mono64-throws-errors

应该是电脑的位与安装的mono的位不一致导致,可以使用下面的命令

mono --arch=32 your_app_name.exe

 

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
参考网址:( https://www.telerik.com/blogs/details/introducing-fiddler-for-os-x-beta-1 )Getting Started 1. If you don’t have the Mono framework installed on your MAC, please, download it from http://www.mono-project.com/download/#download-mac and install it. If you already have it installed, please, update it to latest. 2. If you just installed Mono, please open Terminal and type in /Library/Frameworks/Mono.framework/Versions/<Mono Version>/bin/mozroots --import -sync (The Mono framework has its own trusted root certificates store. Currently (at mono version 4.2.4) this store remains empty after installing Mono on Mac OS X. Fiddler uses the certificates in this store to validate the certificates of the websites visited. So you need to populate this store with a set of commonly trusted root authorities to avoid getting constant certificate warnings by Fiddler. The mozroots tool imports trusted authorities from the Mozilla LXR. ) 3. Extract fiddler-mac.zip to a folder you have write access to. It is recommended that the full path to Fiddler install folder does not contain any Windows path illegal characters. (At present it is possible that some Fiddler functionality, e.g. various file exports or Fiddler Script won’t handle such paths.) 4. Open Terminal and navigate to the folder from 3. 5. Type mono Fiddler.exe in Terminal. To further understand the benefits and limitations of Fiddler for MAC please visit - http://www.telerik.com/blogs/Latest-Fiddler-Available-for-Mac-OS-X

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值