The capture tool Wireshark reported an error "the capture session could not be initiated on interface"

Popular selected articles, more technical dry goods, WeChat search the public account [Laughing Architect], reply the number "666", get a lot of free technical information, all are classics in the classics:

I have installed Wireshark on my mac, and I have been using it without any problems. When the computer system is upgraded and used again, no matter whether the wired or wireless network card is selected, the packet capture fails, and the message "the capture session could not be initiated on interface" pops up.

The next thing that needs to be performed is to give the network card permissions and allow operations on the network card. Enter the following commands in the terminal:

sudo chmod 777 /dev/bpf*

Enter your own computer password according to the prompts, complete the authorization action, open Wireshark, and select the wired or wireless network card for packet capture, the operation is successful, and there will be no more prompts.

[Laughing Architect] Belongs to the programmer's own circle, scan the QR code on WeChat to follow , get more technical dry goods in the first time!

Guess you like

Origin blog.csdn.net/guoguo527/article/details/92805012