The Mindset
- Who am I? — Your current user, privileges, and group memberships.
- Where am I? — The OS, kernel, architecture, and how the system is set up.
- What’s around me? — Users, services, network, files, and misconfigurations.
The Enumeration Checklist
At minimum, collect the following before moving on:Who Am I?
whoami — Current Username
The most basic check. Always run this first on any new shell.
id — User Identity & Group Memberships
This is whoami on steroids. It reveals your UID, GID, and every group you belong to.
uid— Your numeric user ID.0= root.1000+= regular user.gid— Your primary group, usually created alongside your user account.groups— Every group you belong to. This is what matters for privilege escalation.
Where Am I? — System Details
All of the following answer the same question: what exactly is this machine? Run them together as a block.hostname — Machine Name
db-prod-01, web-dev, dc01). This context matters for lateral movement and understanding the environment.
uname — Kernel & OS Information
uname -a output breakdown:
/etc/os-release — OS Name & Version
/proc/version — Kernel + Compiler Info
lscpu — CPU Architecture
pwd — Current Working Directory
Who Else Is Here?
All Users on the System
Currently Logged-In Users
Sudo Rights
Environment & Path
PATHentries pointing to writable directories (PATH hijacking)AWS_*,DOCKER_*,TOKEN,KEY,SECRETvariablesHISTFILElocation — command history can contain credentials
Next: Finding Files & Directories — hunting config files, credentials, and interesting artifacts.