Ports 2049 | NFS
Enumeration
nmap --script nfs-ls,nfs-showmount,nfs-statfs <IP>
showmount -e <IP>
# Metasploit
use auxiliary/scanner/nfs/nfsmount
Mounting

Mount Confirmation

Last updated
nmap --script nfs-ls,nfs-showmount,nfs-statfs <IP>
showmount -e <IP>
# Metasploit
use auxiliary/scanner/nfs/nfsmountIn the example below nmap has identified /home/simon * as being mountable. The asterisk dictates any address can mount this file path.

To mount an export first create a directory on the attacking machine.
Then use the command below to mount to the directory just created.

Running the command mount will list available mounted paths. Using grep we can filter for relevant paths.

Last updated
sudo mkdir /mount/sudo mount -t nfs <IP>:<PATH> /mount/ -o nolockmount <PATH>