今天打开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,解决。简单快速