Skip to main content
  1. Posts/

Permx

·139 words

User
#

Nmap

etc

ffuf

ffuf -u http://permx.htb -H "Host:FUZZ.permx.htb" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-20000.txt -fw 18

www. lms.

webshell.png

all user.png
linpeas all users

users with console.png

MTZ

passwd.png

/app/config/configuration.php

db.png

$_configuration[‘main_database’] = ‘chamilo’; $_configuration[‘db_user’] = ‘chamilo’; $_configuration[‘db_password’] = ‘03F6lY3uXAP2bkW8’;

CONNECTION.png
password was the same as the database

ALWAYS TRY REUSE PASSWORDS

Root
#

ran linpeass

linpeass result.png

acl script let write permission

acl.sh a.png
This script did was use setfacl to change the permisions on a file but the problem was it had to be in /home/mtz/*

sudoers
There was multiple ways to exploit this to get root but what i did was use sym links “ln -s” to link /etc/sudoers to a file named po in my home directory

Then i couldn’t edit myself into it but after changing my permisions for mtz to rwx i put myself in sudoers and then used “sudo -s” to get a root shell

pwnd

Very interesting box!

Thanks for reading