NFS-Network-File-Sharing
Enumeration
nmap --script nfs-ls,nfs-showmount,nfs-statfs <IP>
showmount -e <IP>use auxiliary/scanner/nfs/nfsmount1) Create a directory on the attacking machine
sudo mkdir /mount/2) Mount to the directory just created
sudo mount -t nfs <IP>:<PATH> /mount/ -o nolock
ls -la /mount/3) Confirm mount
mount <PATH>Example:
Critical element: "no_root_squash" on a writable share (SUID bit set file create) or fsid=0/fsid=root
1: Check the name of the folder
2: Create directory
3: Mount directory
4: Copy wanted shell
6: Give SUID bit
7: Execute from target machine
Last updated