WDavid404 / PG-Box

PG box workthough note
0 stars 0 forks source link

Extplorer (Intermediate, linux, 2023) ☆ -- [PE] disk group #35

Open WDavid404 opened 3 months ago

WDavid404 commented 3 months ago

Keypoints:

WDavid404 commented 3 months ago
PORT   STATE SERVICE REASON         VERSION
22/tcp open  ssh     syn-ack ttl 61 OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 (Ubuntu Linux; protocol 2.0)
80/tcp open  http    syn-ack ttl 61 Apache httpd 2.4.41 ((Ubuntu))

Recon

80/tcp --> wordpress

wpscan $IP --> didn't find interesting thing

FFUF --> /filemanager image admin:admin login succeed. We can upload a reverse shell php file and access http://192.168.214.16/php-reverse-shell.php --> get a reverse shell image

We can /home dir has a user called Dora and find Dora password hash info image

crack it: john --wordlist=/usr/share/wordlists/rockyou.txt hash.txt --> doraemon

su to dora image

linpeas: image --> https://book.hacktricks.xyz/linux-hardening/privilege-escalation/interesting-groups-linux-pe

image didn:t find private key info under /root/.ssh see /etc/shadow and /etc/password crack shadow hash --> explorer

su root with password (explorer) image