Skip to content

2049 - Pentesting nfs

Enumeration

nmap -sSUC -p 2049 $IP

Scripts

nmap -p 2049 --script=nfs-ls $IP
nmap -p 2049 --script=nfs-showmount $IP
nmap -p 2049 --script=nfs-statfs $IP

Mounting

To know which folder has the server available to mount you an ask it using

sudo apt install -y nfs-common
showmount -e $IP

Then mount it using

mkdir -p /tmp/nfs_hacked
sudo mount -t nfs $IP:/home /tmp/nfs_hacked
sudo umount /tmp/nfs_hacked