> For the complete documentation index, see [llms.txt](https://the-pentesting-guide.marmeus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-pentesting-guide.marmeus.com/active/services/111-rpcbind.md).

# 111 - rpcbind

## Introduction

**Port**: 111 (TCP)

Remote Procedure Call (RPC) is an inter-process communication technique to allow client and server software to communicate on a network. Rpcbind accepts port reservations from local RPC services. These ports are then made available so the corresponding remote RPC services can access them. Then, the rpcbind service responds to requests for RPC services and sets up connections to the requested RPC service. For instance, NFS is an RPC service.

## Enumeration

Enumerating port 111, you can find **Network File System** (NFS) mounts, therefore you can access the machine's internal file system.

```
sudo nmap -sC -sC -p 111 <TARGET>
111/tcp   open  rpcbind       2-4 (RPC #100000)                        
| rpcinfo:         
|   program version    port/proto  service
[...]                         
|   100003  2,3         2049/udp   nfs                                         
|   100003  2,3         2049/udp6  nfs                                         
|   100003  2,3,4       2049/tcp   nfs
|   100003  2,3,4       2049/tcp6  nfs                                         
|   100005  1,2,3       2049/tcp   mountd    
|   100005  1,2,3       2049/tcp6  mountd
|   100005  1,2,3       2049/udp   mountd
|   100005  1,2,3       2049/udp6  mountd
[...]
rpcinfo  <TARGET>
```

In order to list the mounts available you can use showmount.

```
showmount -e <TARGET>
```

Then, you can mount the shared folder on your machine.

```
mount -t nfs <TARGET>:<REMOTE_FOLDER> <LOCAL_FOLDER> -o nolock
```

## References

* [Understanding Rpcbind and RPC and Port 111](https://www.howtouselinux.com/post/understanding-rpcbind-and-rpc)
* [Pentesting Portmapper - Hacktricks](https://book.hacktricks.xyz/pentesting/pentesting-rpcbind)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://the-pentesting-guide.marmeus.com/active/services/111-rpcbind.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
