Mac上wireshark无法抓包报错

以免自己忘记

问题

mac打开wireshark抓包报错,显示权限不允许

“The capture session could not be initiated on interface ‘en0’ (You don’t have permission to capture on that device).
Please check to make sure you have sufficient permissions.
If you installed Wireshark using the package from wireshark.org, Try re-installing it and checking the box for the “Set capture permissions on startup” item.”

在这里插入图片描述

方法

1.终端输入

sudo chmod 777 /dev/bpf*

2.重新打开wireshark就OK了

猜你喜欢

转载自blog.csdn.net/qq_32505207/article/details/112533998