RPC


Nmap discovered a RPC server on the target port 111 The running service is rpcbind

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/uc404]
└─$ nmap -sSUC -p111 $IP                                                                   
Starting Nmap 7.95 ( https://nmap.org ) at 2025-02-23 17:37 CET
Nmap scan report for 192.168.125.109
Host is up (0.020s latency).
 
PORT    STATE SERVICE
111/tcp open  rpcbind
| rpcinfo: 
|   program version    port/proto  service
|   100000  2,3,4        111/tcp   rpcbind
|   100000  2,3,4        111/udp   rpcbind
|   100000  3,4          111/tcp6  rpcbind
|   100000  3,4          111/udp6  rpcbind
|   100003  3           2049/udp   nfs
|   100003  3           2049/udp6  nfs
|   100003  3,4         2049/tcp   nfs
|   100003  3,4         2049/tcp6  nfs
|   100005  1,2,3      47731/udp   mountd
|   100005  1,2,3      50899/tcp6  mountd
|   100005  1,2,3      55767/tcp   mountd
|   100005  1,2,3      59285/udp6  mountd
|   100021  1,3,4      40129/tcp   nlockmgr
|   100021  1,3,4      40520/udp6  nlockmgr
|   100021  1,3,4      44545/tcp6  nlockmgr
|   100021  1,3,4      60304/udp   nlockmgr
|   100227  3           2049/tcp   nfs_acl
|   100227  3           2049/tcp6  nfs_acl
|   100227  3           2049/udp   nfs_acl
|_  100227  3           2049/udp6  nfs_acl
111/udp open  rpcbind
|_rpcinfo: ERROR: Script execution failed (use -d to debug)
 
Nmap done: 1 IP address (1 host up) scanned in 15.25 seconds

Nmap also enumerated a few services already bound to it, including nfs