Identity
Capture the user, groups, effective privileges, hostname, OS build and architecture. Note whether the shell is interactive, restricted, containerized or remote.
Module 08 // local control
Build an evidence-backed path from the current identity to the lab objective. Check configuration, privileges and trust boundaries methodically before attempting a change.
Record who you are, where you are, and what changed during access. A small baseline makes later findings reproducible and helps prevent evidence from being attached to the wrong target.
Capture the user, groups, effective privileges, hostname, OS build and architecture. Note whether the shell is interactive, restricted, containerized or remote.
List local interfaces, listening services and high-value processes. Compare them with external recon rather than assuming both views are identical.
Save command output beneath the private target tree. Record interpretation separately so raw output remains available for review.
Prefer read-only checks first. Before writing a file, starting a service or changing configuration, know how you will reverse it.
pe status
pe note add -t "local baseline" -b "Initial identity, host and access path"
umask 077
id
hostname
uname -a
cat /etc/os-release
ip -br address
ss -lntup
ps aux --forest
sudo -l
find / -xdev -perm -4000 -type f 2>/dev/null
find / -xdev -perm -2000 -type f 2>/dev/null
getcap -r / 2>/dev/null
systemctl list-timers --all
ls -la /etc/cron* /var/spool/cron 2>/dev/null
Read the exact sudo rule, binary version and execution context. A SUID bit, capability or timer is a lead—not proof—until its ownership, arguments and writable dependencies are understood.
sudo -l for permitted commands, wildcards, preserved environment variables and secure-path behavior.docker or lxd changes the trust boundary.whoami /all
hostname
systeminfo
ipconfig /all
netstat -ano
tasklist /svc
whoami /priv
schtasks /query /fo LIST /v
sc.exe query state= all
powershell -NoProfile -Command "Get-CimInstance Win32_Service | Select-Object Name,StartName,State,PathName"
Correlate service PIDs, accounts and executable paths. Use PowerShell/CIM where legacy utilities are absent, and save long output to the target workspace for offline review.
Enumeration scripts can accelerate coverage, but they also generate noise and may collect secrets. Obtain tools from a trusted lab source, verify the expected hash, read their options, and run them only after manual baseline checks.
sha256sum linpeas.sh
less linpeas.sh
chmod 700 linpeas.sh
./linpeas.sh | tee scans/linpeas.txtGet-FileHash .\winPEAS.exe -Algorithm SHA256
.\winPEAS.exe | Tee-Object -FilePath winpeas.txtReview findings manually. “Interesting” output is a queue of hypotheses, not an instruction to execute every suggested technique.
Identify the privileged component, controllable input, required trigger and expected result.
Demonstrate the boundary with the smallest reversible change allowed by the lab.
Record commands, versions, relevant permissions and output without publishing secrets.
Remove temporary tooling, undo configuration changes, stop listeners and verify the host remains usable.
pe note add -t "privilege path" -b "Component, condition, proof and cleanup"
find scans -maxdepth 1 -type f -not -name SHA256SUMS -exec sha256sum {} + > scans/SHA256SUMS
pe backup
No privilege-escalation topic matches that filter. Press Esc to reset.