Merge pull request #99 from u2mejc/u2mejc-readme-update

Add pure BASH and SSH tips to README
This commit is contained in:
Luke Stephens (hakluke) 2020-01-09 23:24:21 +10:00 committed by GitHub
commit f6ec3a8565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,12 +379,11 @@ Ctrl-C q <Enter> <Enter>
## The libcall way ## The libcall way
Credit: @k-takata Credit: @k-takata
Windows ### Windows
```vim ```vim
:call libcallnr('kernel32.dll', 'ExitProcess', 0) :call libcallnr('kernel32.dll', 'ExitProcess', 0)
``` ```
### Linux
Linux
```vim ```vim
:call libcallnr('libc.so.6', 'exit', 0) :call libcallnr('libc.so.6', 'exit', 0)
@ -395,6 +394,20 @@ Credit: @ligurio
:!q :!q
``` ```
## the pure BASH way
Credit @u2mejc
```bash
:!kill -9 $PPID
```
## the SSH way
Credit @u2mejc
```
~.
```
## Quit as a Service (QaaS) ## Quit as a Service (QaaS)
1. Add the following to `/etc/ssh/sshd_config`: `PermitRootLogin yes`, `PasswordAuthentication yes` 1. Add the following to `/etc/ssh/sshd_config`: `PermitRootLogin yes`, `PasswordAuthentication yes`