Squashed
https://app.hackthebox.com/machines/514
Recon
Nmap
# Nmap 7.92 scan initiated Sun Dec 4 12:53:55 2022 as: nmap -p22,80,111,2049,8000,46395,52769,56161,58987 -sCV -oN targeted 10.10.11.191
Nmap scan report for 10.10.11.191
Host is up (0.079s latency).
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 3072 48:ad:d5:b8:3a:9f:bc:be:f7:e8:20:1e:f6:bf:de:ae (RSA)
| 256 b7:89:6c:0b:20:ed:49:b2:c1:86:7c:29:92:74:1c:1f (ECDSA)
|_ 256 18:cd:9d:08:a6:21:a8:b8:b6:f7:9f:8d:40:51:54:fb (ED25519)
80/tcp open http Apache httpd 2.4.41 ((Ubuntu))
|_http-title: Built Better
|_http-server-header: Apache/2.4.41 (Ubuntu)
111/tcp open rpcbind 2-4 (RPC #100000)
| 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 46137/udp mountd
| 100005 1,2,3 56161/tcp mountd
| 100005 1,2,3 57757/tcp6 mountd
| 100005 1,2,3 60560/udp6 mountd
| 100021 1,3,4 36327/tcp6 nlockmgr
| 100021 1,3,4 38370/udp nlockmgr
| 100021 1,3,4 38479/udp6 nlockmgr
| 100021 1,3,4 46395/tcp 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
2049/tcp open nfs_acl 3 (RPC #100227)
8000/tcp open http SimpleHTTPServer 0.6 (Python 3.8.10)
|_http-title: Directory listing for /
|_http-server-header: SimpleHTTP/0.6 Python/3.8.10
46395/tcp open nlockmgr 1-4 (RPC #100021)
52769/tcp open mountd 1-3 (RPC #100005)
56161/tcp open mountd 1-3 (RPC #100005)
58987/tcp open mountd 1-3 (RPC #100005)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Sun Dec 4 12:54:06 2022 -- 1 IP address (1 host up) scanned in 11.60 seconds
Web Page

NFS TCP - 2049


Create a user, assign the group and get a shell as the user

Exploitation





Privesc

What is .Xauthority?





Last updated