NFS (Network File System) Pentesting
NFS (Network File System) Pentesting
Enumeration
nmap --script=nfs-ls,nfs-statfs,nfs-showmount -p 111,2049 <target-ip>Mounting Folders
1. Check if there are folders avaiable to mount in remote machine.
showmount -e <target-ip>apt-cache search showmount
sudo apt install nfs-common2. Mount to local folder
sudo mkdir /mnt/test# -t: Type
# -o nolock: Option. 'nolock' disables file locking. It's required for older NFS servers.
sudo mount -t nfs <target-ip>:/target/dir /mnt/test -o nolock
# -o vers=2:
sudo mount -t nfs <target-ip>:/target/dir /mnt/test -o nolock -o vers=23. Confirm mounting successfully
4. Clean up the mounted folder after investigation
⚠️Folder Permission Bypass
Last updated