Wireshark: The capture session could not be initiated on interface

Wireshark是个不错的抓包工具,可以捕获HTTP,TCP和UDP的包,对于前后端开发非常有用。在Mac上安装完Wireshark之后提示如下错误:The capture session could not be initiated on interface 'en0' (You don't have permission to capture on that device).

查了一圈资料,发现是没有权限查看/dev/bfp*这些文件夹造成的。于是修改文件夹解决了问题。

sudo chmod o+r /dev/bpf*

参考地址:https://ask.wireshark.org/question/2023/how-to-fix-the-capture-session-could-not-be-initiated-on-interface-you-dont-have-permission-to-capture-on-that-device/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章