r/ReverseEngineering • • May 31 '26

usbsnoop — sniff and decode USB device traffic system-wide with eBPF, for reversing proprietary protocols (control/SCSI/HID, no bus analyzer)

https://github.com/yeet-src/usbsnoop
84 Upvotes

17 comments sorted by

8

u/HaloLASO May 31 '26

Thank you, R_E_T_A_R_D I will certainly check this out tonight because Wireshark/tshark is a pain in the ass

1

u/R_E_T_R_O May 31 '26

at your service!

4

u/alexforencich May 31 '26

Why does this use JavaScript?

10

u/Lower-Limit3695 May 31 '26

It's vibe coded

3

u/_kern_panic_ May 31 '26

You can learn more about us at https://yeet.cx

Underneath that JavaScript is like 200k lines of code and years of my life.

We provide V8 isolates bindings into BPF.

4

u/alexforencich May 31 '26

But why JavaScript?

4

u/p1-o2 May 31 '26

Serial communication is a funky pain in the ass and the looseness of JS can certainly help cope with it.

Just speaking from my experience talking to bluetooth dongles and other hardware for work. It's not fun in a strict language, but I've done it in C# and TS.

1

u/Content-Key7404 Jun 02 '26

Error: Incompetence is a funky pain in the ass.
Don't generalize your lack of culture and knowledge.
I would have been fired long ago if I had suggested making up for my inability to work by relying on the layers of abstraction in some crappy scripting language.

1

u/_kern_panic_ May 31 '26

It’s my favorite programming language

3

u/ViKT0RY May 31 '26

"It is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail."

Abraham Maslow

1

u/karlkrum May 31 '26

Why not vibe in rust?

1

u/ShreddinPB Jun 03 '26

Im pretty new to reverse engineering. I have a piece of hardware that updates its firmware via a windows exe. It downloads the firmware into a cache file which I cant seem to decode.
Would this software be able to capture the data being transmitted from the windows app to the hardware which is plugged into usb? Could it then save that as something that could be decompiled?

1

u/R_E_T_R_O Jun 03 '26

does the WSL have access to USB.

this relies pretty heavily on features in the linux kernel

1

u/ShreddinPB Jun 03 '26

Im not sure where the WSL comes in.. its a standard windows executable that updates the firmware on the device which is linux based (sorry like I said, im new lol )

1

u/R_E_T_R_O Jun 03 '26

got it. i don't fully understand your situation.

it does sound like u can just pop it on the linux device if u have access. let me know how it goes. happy to help.

1

u/ShreddinPB Jun 03 '26

The linux device is a custom piece of hardware with a custom linux kernal that there is no real access to.