satoshinm / pill_duck

Scriptable USB HID device for STM32F103 blue pill (inspired by USB Rubber Ducky) ⛺
GNU General Public License v3.0
63 stars 17 forks source link

Allow reprogramming USB HID descriptor #8

Open satoshinm opened 6 years ago

satoshinm commented 6 years ago

Similar to https://github.com/satoshinm/pill_duck/issues/1, but allow the end user to change the HID descriptor arbitrarily

Hardcoded in https://github.com/satoshinm/pill_duck/blob/7a0faf1934de80901816fbe0d703730b7efff195/src/hid.h#L41-L111

Frank Zhao has a USB Descriptor and Request parser at http://eleccelerator.com/usbdescreqparser/ (which is how this descriptor code was formatted, and it supports pasting the descriptor in then changing it)