使用命令sudo apt install wireshark 安裝
彈出Should non-superusers be able to capture packets?選擇no
運行wireshark , 按照提示運行以下命令:
- sudo dpkg-reconfigure wireshark-common
- sudo usermod -a -G wireshark <username>
username: 你使用的用戶名
然後重新登陸下, 再打開wireshark, 會出現讓你選擇你想抓包的設備:
然後點擊start按鈕就可以開始抓包了