用Homebrew安装Wireshark正常,但是无法抓包,安装需要的ChmodBPF出错
~ ▓▒░ brew install --cask wireshark ░▒▓ ✔ | 19s | anaconda3 Py | 01:33:08
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/05bc9bc
######################################################################### 100.0%
==> Downloading https://2.na.dl.wireshark.org/osx/Wireshark%204.2.0%20Arm%2064.d
######################################################################### 100.0%
==> Installing Cask wireshark
==> Running installer for wireshark with sudo; the password may be necessary.
Password:
installer: Package name is Add Wireshark to the system PATH
installer: Installing at base path /
installer: The install was successful.
==> Running installer for wireshark with sudo; the password may be necessary.
installer: Package name is ChmodBPF
installer: Installing at base path /
installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“Install ChmodBPF.pkg”的脚本时出错。)
==> Purging files for version 4.2.0 of Cask wireshark
Error: Failure while executing; `/usr/bin/sudo -u root -E LOGNAME=14 USER=14 USERNAME=14 -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/wireshark/4.2.0/Install\ ChmodBPF.pkg -target /` exited with 1. Here's the output:
installer: Package name is ChmodBPF
installer: Installing at base path /
installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“Install ChmodBPF.pkg”的脚本时出错。)
去官网下了个ARM的dmg,还是无法安装,添加了个启动项到设置里,但是安装最后还是提示出错,运行UninstallChmodBPF.pkg也出错
应该是我装了个Little Snitch的问题?但是这个防火墙软件没主动提示我要放行任何软件
解决方法是
sudo /Library/Application\ Support/Wireshark/ChmodBPF/ChmodBPF
运行这行代码之后再打开Wireshark就可以正常工作了
有安装Little Snitch的话也会提示你允许packet filter
文章评论