A Ducky USB encoder written in C. It takes as input a Ducky Script text file and produces a binary file usable by the Ducky.
git clone https://github.com/markoneill/cducky
cd cducky && make
Parameters: -i for input file path, -o for output file path, -l for keyboard layout file path
Examples:
./cducky -i myscript.txt
./cducky -i myscript.txt -o output.bin
./cducky -i myscript.txt -o inject.bin -l languages/us.txt
You can find various payload examples or make your own using Ducky Script
cducky supports all of the standard Ducky Script commands and also supports STRING_DELAY (see example below), which will delay individual characters in a string. It's keyboard layout files are are sufficient to support all keys, including NUMLOCK, BACKSPACE, and others unsupported by many other encoders.
DELAY 3000
GUI r
DELAY 500
STRING notepad
DELAY 500
ENTER
DELAY 750
STRING_DELAY 500 Hello World!
BACKSPACE
REPEAT 12