# NFS

* Network File System
* used to access files over a network
* used between linux and unix
* default configuration
  * cat /etc/exports
* nmap&#x20;
  \*

  ````
  ```shell-session
  sudo nmap 10.129.14.128 -p111,2049 -sV -sC
  nmap --script nfs* 10.129.14.128 -sV -p111,2049
  ```
  ````
* Show available nfs shares
  \*

  ````
  ```shell-session
  showmount -e 10.129.14.128
  ```
  ````
* mounting NFS shares
  \*

  ````
  ```shell-session
  lsw2512@htb[/htb]$ mkdir target-NFS
  lsw2512@htb[/htb]$ sudo mount -t nfs 10.129.14.128:/ ./target-NFS/ -o nolock
  lsw2512@htb[/htb]$ cd target-NFS
  lsw2512@htb[/htb]$ tree .
  ```
  ````
*
