Edit and save hello.txt
1 2 3 4 5 6 7 8 |
DELAY 3000 GUI r DELAY 200 STRING notepad ENTER DELAY 200 STRING Hello ENTER |
Ducky Scripts are compiled into hex files ready to be named inject.bin and moved to the root of a microSD card for execution by the USB Rubber Ducky. This is done with the tool duckencoder.
duckencoder is a cross-platform command-line Java program which converts the Ducky Script syntax into hex files. Usage is:
As of duckencoder 1.X usage is:
Encode specified file:
1 |
duckencode -i [file ..] |
Encode to specified file:
1 |
duckencode -i [file ..] -o [file ..] |
For example:
1 |
java -jar duckencoder.jar -i exploit.txt |
Compiling hello.txt
1 |
java -jar duckencoder.jar -i hello.txt |
Save file inject.bin in USB Rubber Ducky