This repository provides syntax highlighting support for Flipper Zero's BadUSB scripts in Notepad++.
It is compatible with BadUSB, Bad KB and USB Rubber Ducky 1.0
UDL stands for User-defined Language. This resource enhances the coding experience for BadUSB script development using Notepad++. It offers syntax highlights for BadUSB and Bad KB scripts, supporting both light and dark modes, and all of the preset themes in Notepad++.
BadUSB uses an extended DuckyScript 1.0 syntax which makes it compatible with classic USB Rubber Ducky 1.0 scripts but also provides extra features, such as setting a custom ID check for the Flipper USB HID device that's injecting the script, Alt+Numpad inputs, the "Wait for button press" command, and Magic SysRq key inputs for Linux systems.
▪ Delays
▪ Special keys
▪ Modifier keys
▪ Media keys
▪ Alt+Numpad inputs
▪ Wait for button press
▪ SysRq inputs
- Download the BadUSB-UDL .xml file: Navigate to BadUSB-UDL on GitHub and click the
badusb-udl.xml
file and download it - Open Notepad++: Don't have Notepad++ yet? Download it here.
- Import the UDL file:
▪ Go to the "Language" menu
▪ Navigate to "User Defined Language"
▪ Select "Define your language..."
▪ Inside the UDL dialog, click the "Import" button
▪ Locate and click on the downloadedbadusb-udl.xml
file
▪ Click "Open" to import the BadUSB UDL - Restart Notepad++: After seeing an "Import successful." prompt, Notepad++ can be closed
- Navigate to the "Language" menu: After restarting Notepad++ the BadUSB syntax highlighting will be available in the "Language" menu.
BadUSB-UDL project 🐬