User Enumeration

Who are you?

whoami
id

View sudo permissions

sudo -l

View other users

cat /etc/passwd
cat /etc/passwd | cut -d : -f 1
  • -d delimiter

  • -f field

Real users will be towards the bottom, root user at the top

Sensitive files

cat /etc/shadow
cat /etc/group

Check the history

history

Try switching users

sudo su -