Tracker

  • User
  • root  

Loot

Proofs

FileFlag
user.txt
root.txt

Passwords

UsernameHashCleartextNotes

Summary

Overview/Highlights

OS: Ubuntu Linux

OS Version:

DNS Hostname:


Solution

Enumeration

I used a walkthrough for this one, just copied out the required ssh key, sshed in, and copied the root password so I could su - into their context. I suck and am ashamed of myself.

Open Ports

22/tcp open ssh syn-ack ttl 63 OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)

9001/tcp open http syn-ack ttl 63 Apache httpd 2.4.29 ((Ubuntu)) | VHosts: |_ 127.0.1.1:80 | X-Powered-By: Esigate

  • OSVDB-3093: /db.php: This might be interesting... has been seen in web logs from an unknown scanner. Directory Structure /clients.php (Status: 200) [Size: 2698] /db.php (Status: 200) [Size: 0] /home.php (Status: 200) [Size: 86] /index.php (Status: 200) [Size: 3353] /index.php (Status: 200) [Size: 3353] /login.php (Status: 200) [Size: 4345] /search.php (Status: 200) [Size: 1] /ticket.php (Status: 200) [Size: 86] /server-status (Status: 200) [Size: 7593]

Manual Enumeration

  1. Web server has Vhosts

  2. HTTP Header xpoweredby Esigate?

  3. nikto reported finding /db.php, /login.php.

  4. index.php has reference to "https://portal.quick.htb", so I know there are subdomains.

  5. Ok, I'll check out these .php files first. First I'll add this host in my hosts file, along with the known subdomain.

  6. navigating to home.php kicks up a javascript alert telling me I have an invalid user/pass, even though I didn't submit anything, then redirects to login.php.

  7. Let's see whats running on 443 UDP with quiche from cloudflare.

This is when I bailed and used another walkthrough, so I didn't keep any detailed notes of my own.


Next: OpenKeys