NFS (attacker-machine)
Attacker machine
Target machine
Required conditions
/... *(...,no_root_squash)Enumeration (possible scripts)
Last updated
/... *(...,no_root_squash)Last updated
$ mount -t nfs ... -o suid# /etc/fstab
$ ls -l /etc/fstab
# systemd services
# find writable files under systemd directories and search inside for the word "mount"
$ find /etc/systemd/system -writable -type f -exec grep -iH "mount" {} \; 2>/dev/null
# cronjobs
# find writable files under cron directories and search inside for the word "mount"
$ find /etc/cron* -type f -writable -exec grep -iH "mount" {} \; 2>/dev/null