HTB - Blocky

Blocky

Getting Root:

  1. Found a file under /plugins which contained credentials to phpMyAdmin

  2. Found a user named notch from the WordPress Scan and was able to ssh to the box using the password found on the file from step 1

  3. The user had ALL ALL on the sudoers file and we were able to get root.

Tools Used:

wpscan, dirsearch.py, jar, javap

Nmap

Enumeration

WPScan

Found a user named: notch

Dirsearch.py

There were two files under http://10.10.10.37/plugins and decided to have a look.

Downloaded the two files checked for anything interesting:

Credentials:

root:8YsqfCTnvxAUeduzjNSXe22

Exploitation

Using those credentials, we can login to phpMyAdmin

However using that password with the user notch (we found it from the WPScan), we can successfully ssh to the box and get the user flag.

Privilege Escalation

Last updated