Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th February 2008, 10:04 PM
stealth86 Offline
Registered User
 
Join Date: Feb 2008
Posts: 30
Using Wireshark to sniff USB Packets

Has anyone tried to use Wireshark to sniff USB packets in Fedora?

I was following the instructions found here.

I've followed all of the instructions successfully up to `modprobe usbmon`, which fails with FATAL: Module usbmon not found.

Can anyone point me in the right direction here?

Alternatively, if you know of a way to capture usb packets other than wireshark that would be helpful too!

Thanks all.
  #2  
Old 26th February 2008, 03:33 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
This command
grep USB_MON /boot/config*
produces
/boot/config-2.6.23.15-137.fc8ONFIG_USB_MON=y
The 'y' (as opposed to an 'm') means that the module is built into the kernel and does not need to be modprobe'd. So just ignore the direction to use modprobe.


Note that you will have to get the latest libpcap and rebuild wireshark on this. The wireshark delivered with F8 uses "libpcap.so.0.9 => /usr/lib/libpcap.so.0.9 (0x03785000)" which will not support the new interface for USB.

You can still do this ...
mount -t debugfs / /sys/kernel/debug
cat /sys/kernel/debug/usbmon/0u # my usb mouse ...

c2990a00 533295389 S Ii:3:006:1 -115:8 7 <
c2990a00 533303348 C Ii:3:006:1 0:8 7 = 000006e0 ff0000
c2990a00 533303363 S Ii:3:006:1 -115:8 7 <
c2990a00 533311356 C Ii:3:006:1 0:8 7 = 000003f0 ff0000
c2990a00 533311392 S Ii:3:006:1 -115:8 7 <
c2990a00 533319354 C Ii:3:006:1 0:8 7 = 000002f0 ff0000
c2990a00 533319383 S Ii:3:006:1 -115:8 7 <
c2990a00 533327344 C Ii:3:006:1 0:8 7 = 000001f0 ff0000
c2990a00 533327355 S Ii:3:006:1 -115:8 7 <
c2990a00 533335341 C Ii:3:006:1 0:8 7 = 000001f0 ff0000
c2990a00 533335357 S Ii:3:006:1 -115:8 7 <
c2990a00 533343350 C Ii:3:006:1 0:8 7 = 000001f0 ff0000
c2990a00 533343389 S Ii:3:006:1 -115:8 7 <
c2990a00 533351348 C Ii:3:006:1 0:8 7 = 000003f0 ff0000
c2990a00 533351372 S Ii:3:006:1 -115:8 7 <
c2990a00 533359341 C Ii:3:006:1 0:8 7 = 000002f0 ff0000
c2990a00 533359351 S Ii:3:006:1 -115:8 7 <
c2990a00 533367347 C Ii:3:006:1 0:8 7 = 000001e0 ff0000
c2990a00 533367382 S Ii:3:006:1 -115:8 7 <
c2990a00 533375347 C Ii:3:006:1 0:8 7 = 000003e0 ff0000
c2990a00 533375382 S Ii:3:006:1 -115:8 7 <
c2990a00 533383338 C Ii:3:006:1 0:8 7 = 000001f0 ff0000
  #3  
Old 26th February 2008, 03:57 PM
stealth86 Offline
Registered User
 
Join Date: Feb 2008
Posts: 30
Quote:
Originally Posted by stevea
The wireshark delivered with F8 uses "libpcap.so.0.9 => /usr/lib/libpcap.so.0.9 (0x03785000)" which will not support the new interface for USB.
That was the key. I did get the latest libpcap, but I just installed wireshark with yum.

Thanks!
  #4  
Old 30th July 2010, 03:23 AM
MrUmunhum's Avatar
MrUmunhum Offline
Registered User
 
Join Date: May 2006
Location: Mt Umunhum, CA, USA
Posts: 57
linuxmozilla
Re: Using Wireshark to sniff USB Packets

Quote:
Originally Posted by stevea View Post
You can still do this ...
mount -t debugfs / /sys/kernel/debug
cat /sys/kernel/debug/usbmon/0u # my usb mouse ...

c2990a00 533295389 S Ii:3:006:1 -115:8 7 <
c2990a00 533303348 C Ii:3:006:1 0:8 7 = 000006e0 ff0000
. . .
How do you determine what name to use? I tried plugging in a USB Stick but don't any added devices in /sys/kernel/debug/usbmon.
They show up in lsusb.
__________________
William Estrada
Mt-Umunhum-Wireless.net ( http://64.124.13.3 )
Skype: MrUmunhum
  #5  
Old 30th July 2010, 03:44 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
Re: Using Wireshark to sniff USB Packets

This thread is over two years old. Probably better to start a new one than dig this out of the bone yard.
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Closed Thread

Tags
packets, sniff, usb, wireshark

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iwl3945, cant sniff network.. hattrickinc Servers & Networking 1 16th August 2008 08:09 PM
Wireshark brunoadm Using Fedora 0 17th March 2008 06:14 PM
how to run wireshark marzo Using Fedora 2 7th December 2007 05:12 AM
Wireshark kelly48187 Security and Privacy 6 3rd August 2006 05:35 PM
Sniff My Server dave_kimberley Security and Privacy 3 17th October 2004 11:57 PM


Current GMT-time: 19:28 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat