Daily Bugle
Room Link: https://tryhackme.com/room/dailybugle
Deploy
Access the web server, who robbed the bank?

Initial Shell

Python Script

Cracking the hash

We can now login to Joomla with the credentials we have found

Reverse Shell
All I did was follow this tutorial to get a reverse shell.
Tutorial: https://www.hackingarticles.in/joomla-reverse-shell/
Kali
Browser


Used this PHP reverse shell, just needed to change the IP to my own.
PHP Reverse Shell: https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php


Get autocomplete
Privilege Escalation
Option #1 - Create malicious rpm file
Found a password in the configuration file. The password worked for the user jjameson which was found in the home directory.

jjamerson is able to run yum with no password as sudo

Kali
Our fpm file is now created

Victim

Option #2 - Spawn interactive root shell by loading a custom plugin
Exploit Link: https://gtfobins.github.io/gtfobins/yum/
Just had to copy paste from gtfobins and it worked right away

Last updated