OSCP-notes

Let's try harder...

View on GitHub

Linux privilege Escalation

// http://pentestmonkey.net/tools/audit/unix-privesc-check
./unix-privesc-check > output.txt

// https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS
linpeas -a > /dev/shm/linpeas.txt
id
whoami
cat /etc/passwd
cat /etc/issue
cat /etc/*-release
uname -a
cat ~/.bash_history
ps axu

https://github.com/DominicBreuker/pspy/
ip a
/sbin/route
netstat -anp
ss -anp
Root privileges are required to list firewall rules with iptables
ls -lah /etc/cron*
cat /etc/crontab
grep "CRON" /var/log/cron.log
dpkg -l
find / -writable -type d 2>/dev/null
find / -writable -type f 2>/dev/null
/bin/lsblk
cat /etc/fstab
mount
// list modules
lsmod

// get details
/sbin/modinfo libata
find / -perm -u=s -type f 2>/dev/null
https://book.hacktricks.xyz/linux-unix/privilege-escalation/docker-breakout