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 just did on SUSE Linux 12.1. It works:
  
 
  # yast -i wireshark
 
  # yast -i wireshark
Line 10: Line 10:
 
  # wireshark
 
  # wireshark
 
Now select USB Bus 2 -> Capture -> Start and you see what's on the wire!
 
Now select USB Bus 2 -> Capture -> Start and you see what's on the wire!
 +
 +
= See also =
 +
* http://crunchbanglinux.org/forums/topic/18182/usbsnifferwireshark/
  
 
[[Category:Projects]]
 
[[Category:Projects]]

Latest revision as of 11:11, 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 just did on SUSE Linux 12.1. It 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!

See also