> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/enum/nfs-discovery/showmount.md).

# Showmount

showmount - show mount information for an NFS server

## NFS Analysis

### Show export list

```bash
showmount -e $TARGET_IP 
```

## NFS Mounting

To mount exported folders

```bash
sudo mount -t nfs $TARGET_IP:<remote_folder> <local_folder> -o nolock
```

Add `-o vers=2` if you want to use NFSv2.

## Resources

Network File System - Wikipedia: <https://en.wikipedia.org/wiki/Network_File_System>

Pentesting NFS Service - HackTricks: <https://hacktricks.wiki/en/network-services-pentesting/nfs-service-pentesting.html>

showmount - Linux manual page: <https://man7.org/linux/man-pages/man8/showmount.8.html>
