usbrply
usbrply copied to clipboard
Bring back libusb c output target
These were removed during the recent rework. But pyprinter.py is pretty straightforward, and it should be easy to replicate that as a template to bring them back
Other: I haven't needed C recently, so this hasn't been as high priority. But if someone wants it I can add it back likely pretty quickly
Any chance to get this back? Kinda looking for it rn.
@himekifee not sure if this is still of use to you, but I have a WIP: https://github.com/JohnDMcMaster/usbrply/pull/74
Did you want kernel or libusb?
Libusb is generally enough for me. I used to prototype in libusb and if necessary, port to kernel code.
I've added experimental support but its pretty untested (compiles but not tested on real device). If you happen to test it definitely interested in your feedback, otherwise I'll test it properly when I can
Ubuntu quick start if you want to test:
sudo apt-get install -y libusb-1.0-0-dev
usbrply -l --wrapper my.pcapng ->main.c
gcc -I/usr/include/libusb-1.0 main.c -lusb-1.0 -o main
./main