Flipper Zero — BadUSB Ducky Script Reference

Jul 14, 2026 11:55am · 5 views
flipper zerobadusbducky scripthidrubber duckypayload1c3d
Markdown

Flipper Zero — BadUSB Ducky Script Reference

Quick reference for Ducky Script syntax supported by the Flipper Zero BadUSB module.

Payload Location

Payload files go on the SD card at /ext/badusb/ as .txt files.

Core Commands

CommandDescriptionExample
REMComment — ignoredREM This opens notepad
DELAYWait in millisecondsDELAY 1000
DEFAULTDELAYDelay between all commandsDEFAULTDELAY 100
STRINGType textSTRING Hello World
ENTERPress Enter keyENTER
REPEATRepeat last command N timesREPEAT 5

Key Names

KeyCommand
Windows/SuperGUI
ControlCTRL
AltALT
ShiftSHIFT
DeleteDELETE
BackspaceBACKSPACE
EscapeESC
TabTAB
Caps LockCAPSLOCK
F1–F12F1 through F12
Arrow keysUP DOWN LEFT RIGHT
Page Up/DownPAGEUP PAGEDOWN
Home / EndHOME END
InsertINSERT
Print ScreenPRINTSCREEN

Common Shortcuts

ShortcutCommand
Run dialog (Windows)GUI r
Lock screen (Windows)GUI l
Task ManagerCTRL SHIFT ESC
CopyCTRL c
PasteCTRL v
Select AllCTRL a
Terminal (Mac)GUI SPACE then STRING Terminal
SpotlightGUI SPACE
Close windowALT F4
New tabCTRL t

Example Payloads

Open Run dialog and launch notepad (Windows):

DELAY 500
GUI r
DELAY 500
STRING notepad
ENTER

Open terminal on Linux:

DELAY 500
CTRL ALT t
DELAY 1000
STRING echo hello
ENTER

Type a long string fast:

DEFAULTDELAY 0
STRING This will type very fast with no delay between commands

Repeat a keystroke:

STRING a
REPEAT 10
REM Types 'a' 11 times total (1 + 10 repeats)

Flipper-Specific Notes

  • File encoding must be UTF-8 — Windows CRLF line endings are fine
  • Maximum file size: no hard limit but keep payloads concise
  • The Flipper shows payload filename and a Run button — press center to execute
  • You can stop mid-payload by pressing the back button
  • ALT NUM (hold Alt, type number on numpad) works on Windows for special characters

Delay Guidelines

ActionSuggested DELAY
After GUI shortcut300–500ms
After opening application1000–2000ms
After typing a command200–300ms
After ENTER for command500–1000ms
On slow systemsAdd 2× more delay

Links