Merge pull request #269 from 0xphk/master

The FlipperZero/BadUSB/Ducky way
This commit is contained in:
Luke Stephens (hakluke) 2024-04-11 21:46:10 +10:00 committed by GitHub
commit bc9395e0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -831,3 +831,19 @@ echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vim
```
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.
## The Flipper Zero / BadUSB / Ducky Script way
Credit: @0xphk
* set correct keyboard layout in FlipperZero (<config)
* if using Duck Toolkit, set keyboard layout in sidebar
* if using PayloadStudio, set keyboard layout in settings
* tested on FlipperZero and WHID Cactus
```
DELAY 1000
ESCAPE
DELAY 500
STRING :q!
DELAY 500
ENTER
```