The USB Rubber Ducky is a tool used to automate "keystroke injection" attacks. It is often used for security testing by simulating a keyboard that executes malicious commands on a target machine. This guide provides a comprehensive list of commands used with the Rubber Ducky, along with several source code examples for different attack scenarios.