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/

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