Skip to content

NFS

ℹ️ Informations

  • 🌐 Website: HackTheBox
  • πŸ“š Module: Footprinting
  • πŸ”— Link: NFS

❓Question

Enumerate the NFS service and submit the contents of the flag.txt in the "nfs" share as the answer.

πŸ“‹ Walkthrough

We will use showmount to see mounts in NFS

showmount -e 10.129.202.5

/var/nfs      10.0.0.0/8
/mnt/nfsshare 10.0.0.0/8
Let's mount them
mkdir /tmp/mnt; sudo mount -t nfs 10.129.202.5:/ /tmp/mnt -o nolock; cd /tmp/mnt

tree                    
.
β”œβ”€β”€ mnt
β”‚Β Β  └── nfsshare
β”‚Β Β      └── flag.txt
└── var
    └── nfs
        └── flag.txt

5 directories, 2 files
Flag is in nfs folder

Answer

HTB{*********************************}


❓Question

Enumerate the NFS service and submit the contents of the flag.txt in the "nfsshare" share as the answer.

πŸ“‹ Walkthrough

Following the previous commands, the flag is in nfsshare folder

Answer

HTB{*****************************************************}