Generate Simple Payloads For Rubber Ducky
Here’s an example of a Markdown (.md
) description for your USB Rubber Ducky encoding tool:
This tool compiles and encodes scripts for USB Rubber Ducky payloads. It supports customizable keyboard layouts and scripting commands, enabling users to craft automated input scripts for various use cases like penetration testing or automation.
- Customizable Output Files: Specify output file paths for encoded payloads.
- Keyboard Layout Support: Select from various layouts (e.g.,
us
,es
,it
,ru
, etc.). - Script Commands: Write robust input automation scripts using a variety of built-in commands:
- ALT: Execute commands like
ALT F4
,ALT SPACE
. - CTRL/CONTROL: Use combinations like
CTRL ESC
,CTRL-SHIFT ESC
. - GUI/Windows: Automate GUI actions like
GUI r
. - STRING: Insert custom text directly as scriptable strings.
- DELAY: Add custom or default delay between commands.
- REPEAT: Loop the last instruction multiple times.
- And more (
SHIFT
,REM
, etc.).
- ALT: Execute commands like
python3 EvilRubby.py
-
Arguments:
-o [file]
: Output encoded payload to the specified file.-l [language]
: Set keyboard layout (e.g.,us
,ru
,it
).
-
Example Commands:
ALT F4
: Close the current window.CTRL ESC
: Open the Start menu.STRING Hello, World!
: Type "Hello, World!".DELAY 100
: Pause for 1 second (1000 ms).REPEAT 5
: Repeat the previous command 5 times.
This version has been updated for Python 3 compatibility:
- Replaced
raw_input
withinput
.
- Python 3.x
keyboard.properties
file for mapping supported keys.
- Clone this repository to your system:
git clone https://github.com/Iamanyomus/EvilRubby/
- Navigate to the encoder directory:
cd EvilRubby/Encoder
- Run the script:
python3 EvilRubby.py
- Transfer the
payload.bin
to your USB Rubber Ducky device.