mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-04-30 18:57:18 +02:00
The FlipperZero/BadUSB/Ducky way
This commit is contained in:
parent
c42d9de845
commit
734ce73b1f
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -831,3 +831,16 @@ 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
|
||||
|
||||
```
|
||||
DELAY 1000
|
||||
ESCAPE
|
||||
DELAY 500
|
||||
STRING :q!
|
||||
DELAY 500
|
||||
ENTER
|
||||
```
|
Loading…
Add table
Reference in a new issue