WiFi Duck Scripting
·Dec 25, 2021·
3 min read
Play this article
Our popular wireless BadUSB tool WiFi Duck is programmable using a simple scripting language. Here we will have a look at all the available commands and functions.
Visit wifiduck.com to learn more about this project.
The scripting language used for the WiFi Duck is made to be compatible with Ducky Script from the awesome people at Hak5. This allows you to use any Ducky Scripts you can find on the interwebs.
For example, you can find some great payloads on Github. Duck Toolkit also has a library of common payloads.
The scripting language is straightforward, here are the basics:
- Keys are separated by a single space.
- Everything written in a single line gets pressed and released at the same time.
- To write text, use the STRING function.
|Type the Windows key and then the r key|
|WINDOWS r||Press the Windows key and the r key simultaneously|
|STRING WINDOWS r||Write WINDOWS r|
|Time in ms between every command|
|Delay in ms|
|Types the following string|
|Repeats the last command n times|
|Sets the keyboard layout. Currently supported: |
|Types a specific key code (modifier, key1[, ..., key6]) in decimal or hexadecimal|
|Changes the color of the LED in decimal RGB values (0-255)|
REM Hello World for Windows PCs DEFAULTDELAY 200 GUI r STRING notepad ENTER STRING Hello World!
Hello World for Windows PCs