6 ms·
USB Sniffer Lite for RP2040
- actionfromafar 2y agoCan this be used to capture the packets of another computer?
- stavros 2y agoThe USB packets? Yes.
- westurner 2y agoSo it should be possible to bridge wired USB wirelessly over 802.11n (2.4 GHz) and Bluetooth BLE 5.2 with two RP2040w, or one and software on a larger computer on the other side with e.g. google/bumble
- stavros 2y agoWhy go through all this trouble if you already have physical access to the computer?
- westurner 2y agoTo connect a USB device over WiFi or Bluetooth with or without an adapter plugged into the computer: USB device <-> RP2040w ))) wifi/bluetooth ((( RP2040w.usb0 <-> computer USB device <-> RP2040w ))) wifi/bluetooth ((( computer.software_xyz
- tssva 2y agoAn example of a use I have deployed via another solution for my wife. She often works from home. She often has to markup up documents and finds it much easier to do so from paper copies. When connected to her work VPN she isn’t allowed access to the local network. We have two offices and the printer is in mine because I frequently need to use it for printing invoices. She used to have to bring her laptop into my office and connect it via usb to print or disconnect from the work VPN. I deployed a usb over network extender. Now she can print from her office without disconnecting from the VPN.
- deleted 2y ago[deleted]
- treflop 2y agoI too have this problem but I just straight up drop the routing table entries that block me from my printer.
- tssva 2y agoUnfortunately my wife’s IT department locks things down enough that isn’t possible. To setup the printer she had to have the IT department remote in, whitelist the usb printer and install the drivers. Even to get that to happen required several levels of approval.
- astromaniak 2y ago-> pc: to have wireless tablet, touchpad, joystick, etc. pc ->: to have wireless robot control, printer, other devices which have drivers, but aren't easily programmable.
- guenthert 2y agoWith the RP2040 host port connected to your development host and the listed pins connected to the DUT, yes. However keep in mind that then those two computers (development host and DUT) are galvanically coupled via the shared USB GND line. There's a risk of creating ground loops. If both are connected to utility power, then they better be on the same outlet and physically close.
- actionfromafar 2y agoSo running either, or both, on battery, is preferable.
- sylware 2y agoI know this is a bit off-topic, but does the RP2040 contain an ARM core, namely the ARM royalties must be paid? If yes, is there a derivative or version of this chip without the ARM core? That said, this is the same issue if there are MPEG codecs, or HDMI related blocks. That's why AV1 codec and DisplayPort should be at least there, and actively prefered.
- askvictor 2y agoYes, it has an arm core. The manufacturer pays the royalty to arm. Very different ball game in my opinion to proprietary codecs. There are no non-arm derivatives. The closest non-arm MCU you'll find is the esp32 but that's completely different, and lacking probably the most useful thing about the rp2040: the PIO.
- deleted 2y ago[deleted]
- sylware 2y agoI guess I will avoid that chip and favor those without an ARM block then. Luckily there are many. But indeed, would be good if those ARM free SOC would also be free-ed from HDMI and MPEG blocks. Getting rid of ARM cores is only the middle of the journey for better hardware freedom, HDMI and MPEG codecs must be a target too.
- Ecco 2y agoHow would this compare to a software-based USB sniffer?
- galangalalgol 2y agoThat is my question as well. I've always been interested on the binary blobs that go to HID moce and keyboards. I wonder if this would make cracking those any easier?
- nvllsvm 2y agoI've had a lot of luck capturing USB packets using a Windows virtual machine and Wireshark on a Linux host. Most recently I've used this to reverse engineer the configuration protocol of the Pulsar X2 v2 Mini gaming mouse. I've also used this to capture the firmware update flow for the gamepad on a GPD Win 2. A physical sniffer wouldn't be ideal here since the gamepad - while USB - is embedded within the device.
- ngcc_hk 2y agoWhat is the result and use of that god win 2. Got one of those and any particular interesting points one can share?
- dougg3 2y agoIt lets you see the raw underlying packets like IN, OUT, SETUP, DATA0/1, etc. That capability would be most useful for USB device firmware developers who might want to see these packets to track down an issue with the DATA0/1 toggling or something like that which wouldn’t be visible in a higher-level software trace like USBpcap or usbmon. Also, it lets you sniff USB traffic of a different host machine, e.g. USB communication between a game console and a USB controller.
- ruined 2y agoit works on macos without disabling SIP
- Tepix 2y agoCan i use this to detect a badusb cable/charger?
- jdhdnxjxie 2y agoSoftware from taradov is always joy
- Hackbraten 2y agoA commercial off-the-shelf alternative for the impatient: https://greatscottgadgets.com/cynthion https://greatscottgadgets.com/cynthion
- mmoskal 2y agoI successfully used Beagle USB 12 and 480 https://www.totalphase.com/products/beagle-usb480/ https://www.totalphase.com/products/beagle-usb480/ . Saleae https://www.saleae.com https://www.saleae.com also has some USB functions but not as extensive. It's much more versatile and look cooler though :) None of these are cheap though.
- explodingwaffle 2y agoThe cheap option is https://github.com/ataradov/usb-sniffer https://github.com/ataradov/usb-sniffer which is actually by the same guy as the OP :) Open hardware so you could build your own for fairly cheap. I bought a clone (is it a clone if the creator never sold them? I'd have preferred to buy it from him...) off aliexpress for ~$50.
- huppeldepup 2y agoIf anyone has surplus bare PCBs for sale for the Cynthion please let me know.
- peterburkimsher 2y agoI use this USB sniffer on a daily basis! At work, we're somewhat limited in what we can install on the office PCs. Therefore I listen to music on an iPod, rather than streaming. To control the music on the iPod, I have a USB sniffer that picks up the media keys on my keyboard, and sends serial packets to the iPod. I should rewrite taradov's code using RTOS threads to allow capture and sending at the same time, but what have now works well enough for my use case. If I press a key during the parse phase then it doesn't pick up, but I can always just press it again and usually it gets through. For newer devices I've got an Arduino that take iPod remote commands and converts them to a TRRS headphone jack remote. So I could use the media keys on the keyboard to control a phone, for example. Soon I plan to use Arduino Audio Tools to build an iPod remote -> Bluetooth A2DP remote using an ESP32 (note that -C and -S don't support A2DP, just ESP32). Every time I change the volume or track on my iPod during a work day, I'm using this USB Sniffer, and it's been very reliable.
- noodlesUK 2y agoThis is my favourite HN comment of the day: you’ve been told you can’t install Spotify or whatever on your work machine for security reasons so you’ve built a custom hardware keylogger to change the songs on your phone. Truly glorious.
- HankB99 2y ago> custom hardware keylogger And that right there should curdle the blood of the folk who won't allow Spotify. (I don't mean to suggest this is a security risk, I don't think it is, but those words ...)