// notes/ PrivEsc — Linux
🐧
Initial Enumeration User Enumeration
Notes from oscp.adot8.com — linux privilege escalation.
#linux privilege escalation#adot8
source · oscp.adot8.com · linux-privilege-escalation/initial-enumeration_user-enumeration ↗User Enumeration
Who are you?
code
01whoami02idView sudo permissions
code
01sudo -lView other users
code
01cat /etc/passwd02cat /etc/passwd | cut -d : -f 1- -d delimiter
- -f field
{% hint style="info" %} Real users will be towards the bottom, root user at the top {% endhint %}
Sensitive files
code
01cat /etc/shadow02cat /etc/groupCheck the history
code
01historyTry switching users
code
01sudo su -