Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: __builtin on November 13, 2015, 04:56:28 PM

Title: Duckyscript plugin
Post by: __builtin on November 13, 2015, 04:56:28 PM

I've been working on a plugin to execute payloads for the USB Rubber Ducky on Rockbox. If you're unfamiliar with the Ducky, see here:!

Basically the USB Rubber Ducky is a tool for automatically injecting keystrokes over USB. That is, it acts like a keyboard. If you're like me and don't want to spend over $40 USD on such a tool, you're in luck! I've taken advantage of Rockbox's USB HID support (some devices only), and implemented Duckyscript, the programming language of the Ducky, as a Rockbox plugin.

The original Duckyscript is very limited, and lacks many features that you would normally find in a programming language. This is quite bothersome, and restricts you to very simple scripts.
Therefore, I've augmented the original language to be a full-fledged programming language, creatively named "Ducky", and ported it to linux. Also, it also adds the option to compile to bytecode. Hopefully it will be possible to compile this into machine code to further augment performance.

The plugin isn't in Git yet, and likely won't be for a while, but you can always get the code at