No Interfaces Available In Wireshark Mac OS X

No Interfaces Available In Wireshark Mac OS X

No Interfaces Available In Wireshark Mac OS X
Many new Wireshark users on Mac OS X run into an issue where no interfaces show up when trying to begin packet capture. If you attempt to manually input an interface (such as en0) this error will occur:

The capture session could not be initiated ((no devices found) /dev/bpf0: Permission denied).

To have the interfaces show up properly you’ll need to widen the permissions on the Berkeley packet filter (BPF). By default they look like this:
  1. crw-------  1 root  wheel 23, 0 Jan 31 13:47 /dev/bpf0
复制代码
We need the filter to be readable by non-root, so open Terminal.app and run this command:
  1. sudo chmod 644 /dev/bpf*
复制代码
Unfortunately every time you reboot this will reset, but if you are a frequent user of Wireshark you can add the ChmodBPF StartupItem to alter them automatically (available in the Utilities folder on the Wireshark disk image). To install you’ll need to follow two steps.

First, drag the ChmodBPF folder to the StartupItems alias in the same folder (or drag it to /Library/StartupItems directly). Type your password to authenticate and move the folder into the correct location.

The second requirement is only for 10.6+ users. Starting with Snow Leopard the security permissions of StartupItems are being enforced. Scripts that do not have the proper owner and group will receive this error:

Insecure Startup Item disabled. – “/Library/StartupItems/ChmodBPF” has not been started because it does not have the proper security settings

The proper security settings are ownership of the scripts by root and group of wheel.1 To set them:
  1. sudo chown -R root:wheel ChmodBPF
复制代码
The correct settings for startup items can be found in this Apple KB article ↩
from:http://langui.sh/2010/01/31/no-i ... wireshark-mac-os-x/

求解ChmodBPF是什么东西?英文能力有限,大概理解就是capture session所需要的/dev/bpf*没有权限,需要赋予权限,但是从启后还从新需要直接赋予权限的命令,那问提到/Library/StartupItems/这里,应该类似win下的启动菜单,但是文中ChmodBPF是何物?是自写的一个处理这个问题的shell脚本还是?那位童鞋了解过 谢谢了:)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值