OSCP Notes
Search…
NFS
Network File System

Show all mounts

1
showmount -e $ip
Copied!

Mount a NFS share

1
mount $ip:/vol/share /mnt/nfs
Copied!

Use nfspy to mount a share.

Will get around permission errors
1
nfspysh -o server=$ip:/home/vulnix/
Copied!

Nmap Scan on RPCbind and NFS

1
nmap -v -p 111 10.11.1.1-254
Copied!
1
nmap -sV -p 111 --script=rpcinfo 10.11.1.1-254
Copied!
1
nmap -p 111 --script nfs* 10.11.1.72
Copied!

mount

1
[email protected]:~$ mkdir home
2
[email protected]:~$ sudo mount -o nolock 10.11.1.72:/home ~/home/
3
[email protected]:~$ cd home/ && ls
4
jenny joe45 john marcus ryuu
Copied!

Note

    Take a look of suid if permission denied
    Create new user and change the suid of user to the correct one
1
sudo sed -i -e 's/1001/1014/g' /etc/passwd
Copied!
Last modified 1yr ago