OPSECTLAS you are here: Network
Network

PrivEsc Summary (Pointers)

reference 10 commands

  1. Recon
  2. Enumerate
  3. Foothold
  4. PrivEsc
  5. Lateral
  6. Post-Ex
yieldsFoothold (Linux)Foothold (Windows)

After getting a shell, route by where you landed:

Quick triage

Linux: first 5 commands after getting shell

id && whoami
sudo -l
find / -perm -4000 2>/dev/null | sort     # SUID
cat /etc/crontab && ls /etc/cron*
uname -a && cat /etc/os-release

Windows: first 5 commands after getting shell

whoami /priv
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
wmic service get name,startname,pathname | findstr /i /v "C:\\Windows"
schtasks /query /fo LIST /v | findstr "Task To Run"
reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
connected