Created
April 3, 2019 04:37
-
-
Save touzoku/aacc6acd2a5c71595f2f7b89549fae70 to your computer and use it in GitHub Desktop.
Rubber Ducky code that works on Macs with multiple keyboards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Hits ⌘+Space then Ctrl+Space then 英数 button (HID 145) | |
REM Guarantees Spotlight open and English keyboard | |
REM Must use Ducky encoder with HID command support | |
REM https://github.com/mame82/USB-Rubber-Ducky/tree/USB-HID-keycode | |
DELAY 1000 | |
GUI SPACE | |
CTRL SPACE | |
HID 145 | |
STRING terminal | |
DELAY 500 | |
ENTER | |
DELAY 2000 | |
STRING osascript -e 'set volume 7' | |
DELAY 500 | |
ENTER | |
DELAY 500 | |
STRING open https://youtu.be/Ct6BUPvE2sM?t=17 | |
DELAY 500 | |
ENTER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment