mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 15:04:19 +00:00
[FL-2115][FL-2122] BadUSB demo scripts (#915)
* BadUSB: support for dual-modifier key commands, demo script for windows * BadUSB: ALT-GUI command, demo script for macOS Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
b0f582df99
commit
51b823d1ca
3 changed files with 166 additions and 0 deletions
|
@ -40,6 +40,11 @@ typedef struct {
|
|||
} DuckyKey;
|
||||
|
||||
static const DuckyKey ducky_keys[] = {
|
||||
{"CTRL-ALT", KEY_MOD_LEFT_CTRL | KEY_MOD_LEFT_ALT},
|
||||
{"CTRL-SHIFT", KEY_MOD_LEFT_CTRL | KEY_MOD_LEFT_SHIFT},
|
||||
{"ALT-SHIFT", KEY_MOD_LEFT_ALT | KEY_MOD_LEFT_SHIFT},
|
||||
{"ALT-GUI", KEY_MOD_LEFT_ALT | KEY_MOD_LEFT_GUI},
|
||||
|
||||
{"CTRL", KEY_MOD_LEFT_CTRL},
|
||||
{"CONTROL", KEY_MOD_LEFT_CTRL},
|
||||
{"SHIFT", KEY_MOD_LEFT_SHIFT},
|
||||
|
|
82
assets/resources/badusb/demo_macos.txt
Normal file
82
assets/resources/badusb/demo_macos.txt
Normal file
|
@ -0,0 +1,82 @@
|
|||
REM This is BadUSB demo script for macOS
|
||||
|
||||
REM Open terminal window
|
||||
DELAY 1000
|
||||
GUI SPACE
|
||||
DELAY 500
|
||||
STRING terminal
|
||||
DELAY 500
|
||||
ENTER
|
||||
DELAY 750
|
||||
|
||||
REM Copy-Paste previuos string
|
||||
UP
|
||||
CTRL c
|
||||
|
||||
REM Bigger shell script example
|
||||
STRING cat > /dev/null << EOF
|
||||
ENTER
|
||||
|
||||
STRING Hello World!
|
||||
ENTER
|
||||
|
||||
DEFAULT_DELAY 50
|
||||
|
||||
STRING =
|
||||
REPEAT 59
|
||||
ENTER
|
||||
ENTER
|
||||
|
||||
STRING _.-------.._ -,
|
||||
ENTER
|
||||
HOME
|
||||
STRING .-"```"--..,,_/ /`-, -, \
|
||||
ENTER
|
||||
HOME
|
||||
STRING .:" /:/ /'\ \ ,_..., `. | |
|
||||
ENTER
|
||||
HOME
|
||||
STRING / ,----/:/ /`\ _\~`_-"` _;
|
||||
ENTER
|
||||
HOME
|
||||
STRING ' / /`"""'\ \ \.~`_-' ,-"'/
|
||||
ENTER
|
||||
HOME
|
||||
STRING | | | 0 | | .-' ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING | ,..\ \ ,.-"` ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING ; : `/`""\` ,/--==,/-----,
|
||||
ENTER
|
||||
HOME
|
||||
STRING | `-...| -.___-Z:_______J...---;
|
||||
ENTER
|
||||
HOME
|
||||
STRING : ` _-'
|
||||
ENTER
|
||||
HOME
|
||||
STRING _L_ _ ___ ___ ___ ___ ____--"`
|
||||
ENTER
|
||||
HOME
|
||||
STRING | __|| | |_ _|| _ \| _ \| __|| _ \
|
||||
ENTER
|
||||
HOME
|
||||
STRING | _| | |__ | | | _/| _/| _| | /
|
||||
ENTER
|
||||
HOME
|
||||
STRING |_| |____||___||_| |_| |___||_|_\
|
||||
ENTER
|
||||
HOME
|
||||
ENTER
|
||||
|
||||
STRING Flipper Zero BadUSB feature is compatible with USB Rubber Ducky script format
|
||||
ENTER
|
||||
STRING More information about script synax can be found here:
|
||||
ENTER
|
||||
STRING https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript
|
||||
ENTER
|
||||
|
||||
STRING EOF
|
||||
ENTER
|
79
assets/resources/badusb/demo_windows.txt
Normal file
79
assets/resources/badusb/demo_windows.txt
Normal file
|
@ -0,0 +1,79 @@
|
|||
REM This is BadUSB demo script for windows
|
||||
|
||||
REM Open windows notepad
|
||||
DELAY 1000
|
||||
GUI r
|
||||
DELAY 500
|
||||
STRING notepad
|
||||
DELAY 500
|
||||
ENTER
|
||||
DELAY 750
|
||||
|
||||
STRING Hello World!
|
||||
ENTER
|
||||
DEFAULT_DELAY 50
|
||||
|
||||
REM Copy-Paste previuos string
|
||||
UP
|
||||
HOME
|
||||
SHIFT DOWN
|
||||
CTRL c
|
||||
RIGHT
|
||||
CTRL v
|
||||
CTRL v
|
||||
|
||||
STRING =
|
||||
REPEAT 59
|
||||
ENTER
|
||||
ENTER
|
||||
|
||||
STRING _.-------.._ -,
|
||||
ENTER
|
||||
HOME
|
||||
STRING .-"```"--..,,_/ /`-, -, \
|
||||
ENTER
|
||||
HOME
|
||||
STRING .:" /:/ /'\ \ ,_..., `. | |
|
||||
ENTER
|
||||
HOME
|
||||
STRING / ,----/:/ /`\ _\~`_-"` _;
|
||||
ENTER
|
||||
HOME
|
||||
STRING ' / /`"""'\ \ \.~`_-' ,-"'/
|
||||
ENTER
|
||||
HOME
|
||||
STRING | | | 0 | | .-' ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING | ,..\ \ ,.-"` ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING ; : `/`""\` ,/--==,/-----,
|
||||
ENTER
|
||||
HOME
|
||||
STRING | `-...| -.___-Z:_______J...---;
|
||||
ENTER
|
||||
HOME
|
||||
STRING : ` _-'
|
||||
ENTER
|
||||
HOME
|
||||
STRING _L_ _ ___ ___ ___ ___ ____--"`
|
||||
ENTER
|
||||
HOME
|
||||
STRING | __|| | |_ _|| _ \| _ \| __|| _ \
|
||||
ENTER
|
||||
HOME
|
||||
STRING | _| | |__ | | | _/| _/| _| | /
|
||||
ENTER
|
||||
HOME
|
||||
STRING |_| |____||___||_| |_| |___||_|_\
|
||||
ENTER
|
||||
HOME
|
||||
ENTER
|
||||
|
||||
STRING Flipper Zero BadUSB feature is compatible with USB Rubber Ducky script format
|
||||
ENTER
|
||||
STRING More information about script synax can be found here:
|
||||
ENTER
|
||||
STRING https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript
|
||||
ENTER
|
Loading…
Reference in a new issue