mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 03:07:11 +02:00
Merge pull request #269 from 0xphk/master
The FlipperZero/BadUSB/Ducky way
This commit is contained in:
commit
bc9395e0e2
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -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
|
||||
```
|
Loading…
Add table
Reference in a new issue