mac Wireshark报错You do not have permission to capture on device “en1“

Wireshark开始抓包时报错

You do not have permission to capture on device "en1".
((cannot open BPF device) /dev/bpf0: Permission denied)

mac Wireshark报错You do not have permission to capture on device “en1“_第1张图片

查看 /dev/bpf* 文件的权限

ls -l /dev/bpf*

mac Wireshark报错You do not have permission to capture on device “en1“_第2张图片

更新 /dev/bpf* 文件权限和组权限

sudo chmod g+r /dev/bpf* && sudo chgrp admin /dev/bpf*

mac Wireshark报错You do not have permission to capture on device “en1“_第3张图片

选择网卡开始抓包

出现如下界面,说明可以正常抓包

mac Wireshark报错You do not have permission to capture on device “en1“_第4张图片

你可能感兴趣的:(macos,wireshark,测试工具)