Output:
Your badUSB payload will be here. At the end of the process, click "Save", and the download will automatically start. You can also edit manually the script before download.
Change ID (VID/PID):
VendorID an ProductID are codes used to identify your keyboard. ONLY if you are targeting a macOS, remember to insert the ID command, to change VID / PID, at the top of your code.
* You can set custom ID of Flipper USB HID device. ID command should be in the first line of script, it is executed before script run. Unless your target is a macOS (which requires to specify it at the first line of the payload), VID and PID are hex codes and are mandatory, Manufacturer and Product are text strings and are optional.
Remark (REM):
REM is short for Remark and adds a comment to the payload, like a title, the target OS, the functioning of a command or the author's name.
String (STRING/ALTCODE):
STRING injects keystrokes, or "types", the given characters (a-z, 0-9, punctuation & specials).
ALTCODE is used instead of STRING, to print text string using "ALT+Numpad" method. It works even if non-US keyboard layout is selected
Delays:
DELAY is expressed in milliseconds (1 sec. = 1000 ms.). The minimum is 100 (0.1 sec.). It increases/decreases by 100 milliseconds each click.
DEFAULT_DELAY / DEFAULTDELAY add delay before every next command.
Misc. Commands:
REPEAT is used to repeat the previous command. It expects the number of additional repeats as parameter.
ALTCHAR is to display single ALT+Numpad Keys (on Windows), or ALT(ALT+SHIFT) Keys (on macOS).
Click
HERE for a complete list of available codes for ALT characters.
Modifier Keys:
GUI is used for both: the WINDOWS(⊞) key on Windows, and the CMD(⌘) key on macOS. (Targeting Windows, you can use WINDOWS key or GUI key to get the same result). CONTROL and CTRL as well. If you need to use more than one "modifier key" at once, use the preloaded "Keys Combos", which you'll find just below these Modifier keys.
Combos Keys:
ONLY on Windows: CTRL-ALT is the same as to type ALTgr (ALT Graphic) and you can use both ALT-WINDOWS or ALT-GUI, and WINDOWS-SHIFT or GUI-SHIFT to get the exact same result.
Arrow Keys / Cursor:
UP is the same as UPARROW. DOWN is the same ad DOWNARROW. LEFT is the same as LEFTARROW. RIGHT is the same as RIGHTARROW.
Main Control Keys:
Others Control Keys:
* The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low-level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem. (Wikipedia)
Function Keys: