USB reverse engineering tips

Do you want to know what happens in the USB devices? What data flows between your PC and your device? Here are some videos that show tips how you can figure out what data flows on your USB ports.

Reverse Engineering USB Devices [28C3]

 

How to reverse engineer a USB protocol for Linux

 

Analyze and Debug USB in 90 Seconds

 

Use Fresscale’s USB-KW24D512: USB Packet Sniffer in Wireshark

 

For more information check more USB Wireshark videos, Wireshark documentation on USB capture and Free USB Analyzer.

 

 

8 Comments

  1. Elena says:

    Hello,
    First of all let me thank you for sharing you knowlage.
    Would it be worth trying USB data Capture such as this – http://www.eltima.com/products/usb-capture/

    Reply
  2. Tomi Engdahl says:

    Capture and view USB traces with Microsoft Message Analyzer
    https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/capture-and-view-ing-usb-traces-with-microsoft-message-analyzer-

    Summary

    Microsoft Message Analyzer installation and setup
    Capture and view live USB traces
    You can use Microsoft Message Analyzer (MMA) to capture and view live USB traces, or view an existing trace.

    Instead of capturing traces by using the command line tool, logman, and then parsing them in Netmon 3.4, you can perform all those tasks from a single GUI.

    Reply
  3. Tomi Engdahl says:

    Harry Gill’s process involves capturing USB packages via Wireshark and USBPcap, using Rust to replicate the data, and writing a bit of Linux software.

    Developer Uses Rust to Reverse Engineer USB Device for Linux Support
    https://www.hackster.io/news/developer-uses-rust-to-reverse-engineer-usb-device-for-linux-support-686260ce1dd8

    The process involves capturing USB packages via Wireshark and USBPcap, using Rust to replicate the data and writing a bit of Linux software.

    Reply
  4. Tomi Engdahl says:

    Breaking Down The USB Keyboard Interface With Old-Fashioned Pen And Paper
    https://hackaday.com/2021/06/24/breaking-down-the-usb-keyboard-interface-with-old-fashioned-pen-and-paper/

    What is better for gaming, old PS/2 style keyboards, or modern USB devices? [Ben Eater] sets out to answer this question, but along the way he ends up breaking down the entire USB keyboard interface.

    It turns out that PS/2 and USB are very, very different. A PS/2 keyboard sends your keystroke every time you press a key, as long as it has power. A USB keyboard is more polite, it won’t send your keystrokes to the PC until it asks for them.

    How does a USB keyboard work?
    https://www.youtube.com/watch?v=wdgULBpRoXk

    Reply
  5. Tomi Engdahl says:

    How does a USB keyboard work?
    https://www.youtube.com/watch?v=wdgULBpRoXk

    0:00 Intro
    0:50 USB electrical interface
    4:43 How USB encodes bits and packets
    23:41 USB packet contents
    29:26 USB vs. PS/2

    The USB 2.0 spec: https://eater.net/downloads/usb_20.pdf

    Reply
  6. Tomi Engdahl says:

    How does a USB keyboard work?
    https://www.youtube.com/watch?v=wdgULBpRoXk

    0:00 Intro
    0:50 USB electrical interface
    4:43 How USB encodes bits and packets
    23:41 USB packet contents
    29:26 USB vs. PS/2

    The USB 2.0 spec: https://eater.net/downloads/usb_20.pdf

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

*

*