Linux
Decision Tree: Shell on Linux → What First?
reference
- Recon
- Enumerate
- Foothold
- PrivEsc
- Lateral
- Post-Ex
You landed a low-priv shell on the Linux host (www-data, a service user). Stabilize first, enumerate hard, then escalate in priority order.
start Low-priv shell on the Linux host (www-data or a user)
- 1Shell Stabilization (get a real PTY before anything else)
- 2System Enumeration (kernel, users, SUID, cron, writable paths)
- 3sudo -l → GTFOBins Workflow (check your sudo rights, escape any binary)
- SUID Binary Exploitation (any unusual SUID-root binaries?)
- Cron Job Exploitation (writable scripts running as root?)
- 4Password Hunting (creds in configs, history, and .ssh keys)
- 5LinPEAS & pspy Usage (automate the sweep, watch running processes)
- Kernel Exploits (last resort, match the exact version)