Linux-priv-esc-to-quick-check-the-system
SSH to Target
ssh htb-student@<target IP>Process and User Enumeration
ps aux | grep root # See processes running as root
ps au # See logged in usersUser Directory and SSH Key Check
ls /home # View user home directories
ls -l ~/.ssh # Check for SSH keys for current user
history # Check the current user's Bash historySudo and Cron Jobs
sudo -l # Check sudo privileges
ls -la /etc/cron.daily # Check for daily Cron jobsDisk and Filesystem Information
lsblk # Check for unmounted file systems/drivesWritable Directories and Files
find / -path /proc -prune -o -type d -perm -o+w 2>/dev/null # Find world-writeable directories
find / -path /proc -prune -o -type f -perm -o+w 2>/dev/null # Find world-writeable filesSystem Information
Compiling Exploits
Process Monitoring
SUID and SETGID Files
Privilege Escalation Techniques
Path Manipulation
Config File Discovery
Shared Object and Binary Analysis
LXD Privilege Escalation
NFS Exploitation
Tmux Shared Sessions
System Audit
Last updated