mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-15 17:11:58 +02:00
commit
c54c32771d
1 changed files with 5 additions and 0 deletions
|
@ -648,6 +648,11 @@ vim
|
|||
```
|
||||
5. In the AWS EC2, select the newly created EC2 instance and terminate the instance.
|
||||
|
||||
## The AWS CLI Way
|
||||
```
|
||||
!aws --region `ec2-metadata --availability-zone | sed 's/placement: \(.*\).$/\1/'` ec2 stop-instances --instance-ids `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id`
|
||||
```
|
||||
|
||||
## The Arbitrary Code Execution Way
|
||||
|
||||
Based on https://www.exploit-db.com/exploits/46973. Works with Vim < 8.1.1365.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue