wireshark for mac
来源:互联网 发布:最好的网络医院平台 编辑:程序博客网 时间:2024/05/19 02:39
权限管理是个让人既爱又恨的东西...
Windows Vista因为加了个UAC就让无数小白骂得狗血淋头,相对而言OS X处理得好得多.但在跑一些从Unix/Linux移植过来的程序的时候,还是要纠结一下...
比如Wireshark...
下面讲讲我是怎样纠结地把它折腾好的...Step by step:
1)首先肯定是下载...就不多说了,按照系统版本...我的是Mac OS X 10.6 Snow Leopard,但我码这篇字的时候还没有相应版本,于是下的for 10.5 Leopard的
2)下完展开dmg文件,看到:
安装进行到这里还比较正常,按照一个mac用户的习惯,把Wireshark的图标拖到Applications里面先~
3)然后打开Utilities文件夹:
把ChmodBPF拖到StartupItems里(需要验证权限...第1次),然后打开终端(如果连终端是什么都不晓得就control+空格打开spotlight搜- -b)
输入(或者把下面的命令复制粘贴到终端里执行):
sudo chown -R root:wheel ChmodBPF
需要验证权限...第2次...这句话的意思是把ChmodBPF的拥有者改成root
4)继续在终端输入:
sudo cp /Volumes/Wireshark/Utilities/Command/ Line/* $home/bin
还是需要验证权限...第3次...
这句话意思是把上面Command Line文件夹里的所有文件复制到你自己主文件夹的bin文件夹里,这样以后就可以通过命令行使用Wireshark了
5)还是在终端输入:
sudo vi /Library/StartupItems/ChmodBPF/ChmodBPF
然后在文件里加入一行:
StartService ()
{
#
# Unfortunately, Mac OS X's devfs is based on the old FreeBSD
# one, not the current one, so there's no way to configure it
# to create BPF devices with particular owners or groups.
# This startup item will make it owned by the admin group,
# with permissions rw-rw----, so that anybody in the admin
# group can use programs that capture or send raw packets.
#
# Change this as appropriate for your site, e.g. to make
# it owned by a particular user without changing the permissions,
# so only that user and the super-user can capture or send raw
# packets, or give it the permissions rw-r-----, so that
# only the super-user can send raw packets but anybody in the
# admin group can capture packets.
#
chgrp admin /dev/bpf*
chmod g+rw /dev/bpf*
chown can:admin /dev/bpf*
}
StopService ()
{
return 0;
}
RestartService () { StartService; }
RunService "$1"
注意把"can"改成你自己的用户名,不知道就用"whoami"命令查看一下
当然不习惯vi的也可以用别的编辑器
6)然后终于可以打开Wireshark了...
...但是此时你会看到很多错误= =...
解决方案是,打开Edit->Preferences->Name Resolution->SMI Paths:
加入一条"/usr/share/snmp/mibs",然后一路确定下去...
这个貌似是Wireshark在OS X下的一个bug
7)关掉Wireshark,然后在终端运行:
sudo chgrp admin /dev/bpf*
sudo chmod g+rw /dev/bpf*
sudo chown can:admin /dev/bpf*
呃...貌似又要验证权限...
然后再打开Wireshark就OK了~如果没OK,重启机器试试- -b...
- wireshark for mac
- Mac下安装Wireshark
- mac 下wireshark使用
- mac上使用wireshark
- Mac 中使用Wireshark
- mac安装wireshark
- wireshark mac 编译
- Mac系统 wireshark 抓包出现No Interface can be used for capturing
- Wireshark for Mac : you don't have permission to capture on that device
- Lua for wireshark
- mac上wireshark不能抓包时
- Mac下Wireshark的安装
- wireshark 在mac上使用
- MAC上wireshark找不到网卡
- wireshark过滤MAC地址/物理地址
- wireshark on mac :::no interface can be used for capturing in this system with the current configura
- mac上wireshark:No interface can be used for capturing in this system with the current configuration
- H264 extractor plugin for Wireshark
- Boost Asio在Windows下设计及实现解析
- 共享Windows下C++库之内存池篇
- mysqlhotcopy 热备工具体验与总结
- C#代码规范 程序员必备的秘笈
- 软件架构的过程
- wireshark for mac
- 触发器例子,insert into all的用法
- 字符串截取-笔试题
- DataGridView使用实例1
- [转] FLAC vs APE (二)
- .NET企业级架构解决方案:架构师和架构
- 软件构架师的特点
- QT获取本地ip
- 新来的!