Muffinresearch Labs by Stuart Colville

No Interfaces Available Using Wireshark on Mac OSX | Comments (5)

Posted in Code, Linux/Unix on 2nd June 2008, 8:10 am by Stuart

On my previous Macbook Pro I’d used Ethereal and I don’t remember having many issues with it as I was able to run it as sudo so that I had privileges for sniffing packets. Since then Ethereal has become Wireshark and it’s now available with a nice appication wrapper as a launcher for running it under X11. (Note this requires X11 to be installed)

After opening wireshark for the first time I had an issue that there were no interfaces to choose from due to lack of permissions. This link provides a neat solution to the problem by providing a start-up item to set the relevant permissions correctly.

The nub of the solution is to make sure you have permission to read /dev/bpf*

Post Tools

Comments: Add yours

1. On November 15th, 2008 at 4:25 pm fabrizio said:

See here:

http://www.finkconsulting.com/page7.php

2. On July 23rd, 2009 at 9:35 pm RuBiCK said:

Good tip! It works for me.

I would like to see a wireshark in cocoa :D

Thanks!

3. On October 24th, 2009 at 4:29 pm Cacasodo said:

Thanks Stuart! Saved me some time.
‘sodo

4. On August 26th, 2010 at 12:47 am Sam said:

The link above:
http://www.finkconsulting.com/page7.php
…that seems to have solved everyone’s problems, seems to be a dead link today. Could someone post the information or a new link to the information?

5. On August 26th, 2010 at 8:45 am Stuart Colville said:

@Sam: I think that was just a link to installing wireshark via fink. Fink (if you’ve not seen it before) is a package manager for OSX. From experience it handles dependencies independently of system installed libs, which tends to ensure things work, but is a tad annoying when it downloads and sets-up completely new python/perl etc when you already have that installed.

In any case here’s the link to wireshark on the fink project http://pdb.finkproject.org/pdb/package.php/wireshark

Presumably the perms solution didn’t resolve the issue for you?







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(2)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.539s.