# System Enumeration

## Get kernel version

<pre><code><strong>uname -a
</strong></code></pre>

```
cat /proc/version
cat /etc/issue
```

{% hint style="info" %}
It can be useful to know the hostname in CTF situations as it can relate to the required exploit to escalate privileges
{% endhint %}

## View the architecture

```
lscpu
```

{% hint style="info" %}
Some exploits may require multiple threads or cores, if the machine doesn't have the required amount then the exploit won't work
{% endhint %}

## View processes

```
ps aux
ps aux | grep root
```

{% hint style="info" %}
They will be in the order that they were issued
{% endhint %}


---

# 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://pnpt.adot8.com/linux-privilege-escalation/initial-enumeration/system-enumeration.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.
