Difference between revisions of "Usb sniffer"

From ThorstensHome
Jump to: navigation, search
Line 1: Line 1:
 
My brother asked me "I have a USB label printer with a button. When I press the button, I want something on the computer to happen. What can I do?"
 
My brother asked me "I have a USB label printer with a button. When I press the button, I want something on the computer to happen. What can I do?"
  
Answer: Build a USB sniffer. I proceed according to http://crunchbanglinux.org/forums/topic/18182/usbsnifferwireshark/ on SUSE Linux 12.1. It just works.
+
Answer: Build a USB sniffer. I proceed according to http://crunchbanglinux.org/forums/topic/18182/usbsnifferwireshark/ on SUSE Linux 12.1. It just works:
 +
 
 +
# yast -i wireshark
 +
# modprobe usbmon
 +
# lsusb
 +
[...]
 +
'''Bus 002''' Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
 +
# wireshark
 +
Now select USB Bus 2 -> Capture -> Start and you see what's on the wire!
  
 
[[Category:Projects]]
 
[[Category:Projects]]

Revision as of 11:41, 22 October 2012

My brother asked me "I have a USB label printer with a button. When I press the button, I want something on the computer to happen. What can I do?"

Answer: Build a USB sniffer. I proceed according to http://crunchbanglinux.org/forums/topic/18182/usbsnifferwireshark/ on SUSE Linux 12.1. It just works:

# yast -i wireshark
# modprobe usbmon
# lsusb
[...]
Bus 002 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
# wireshark

Now select USB Bus 2 -> Capture -> Start and you see what's on the wire!