# 2049 - Pentesting NFS

## Showmount (to show the mounts)

```python
showmount -e 10.10.179.151
```

<figure><img src="https://3420091786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1ZUO45eHY8aMCLJ7OiN%2Fuploads%2FKBOF0fDoLrbuXzUikCaR%2Fimage.png?alt=media&#x26;token=5278bed7-2056-4b3d-899c-68a444d837e4" alt=""><figcaption></figcaption></figure>

## Mounting Remote Directories

```python
sudo mount -t nfs 10.10.179.151:/mnt/nfs_shares mnt -o nolock
```

<figure><img src="https://3420091786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1ZUO45eHY8aMCLJ7OiN%2Fuploads%2FcQpnkvxaSRYVRwBQOT1n%2Fimage.png?alt=media&#x26;token=07afaf66-6bae-45af-887a-d7dc2a9a71c5" alt=""><figcaption></figcaption></figure>
