Privileges Escalation
Kernel Exploits
1) uname -a
2) /proc/version
3) /etc/issue
1- Look for an exploit for the kernel
2- Compile and run the codeSudo
1) sudo -l
1- look for files you can execute as root. use gtfobins
2) LD_PRELOAD
1- if env-keep is set can generate and execute custom lib when running command
1> compile code as shared object (.so)
2> run command with sudo pointing LD_PRELOAD to you .so fileSUID
1) find / -type f -perm -04000 -ls 2>/dev/null
2) find / -perm -u=s -type f 2>/dev/null
1- find SUID enabled files
2- use gtfobins to find out how to exploit themCron Jobs
PATH
Capabilities
NFS
Mind Map

Last updated
Was this helpful?