// notes/ PrivEsc — Linux
🐧
Initial Enumeration System Enumeration
<pre<code<stronguname -a
#linux privilege escalation#adot8
source · oscp.adot8.com · linux-privilege-escalation/initial-enumeration_system-enumeration ↗System Enumeration
Get kernel version
<pre><code><strong>uname -a </strong></code></pre>code
01cat /proc/version02cat /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
code
01lscpu{% 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
code
01ps aux02ps aux | grep root{% hint style="info" %} They will be in the order that they were issued {% endhint %}