Bashed
#Linux #Enumeration #Web-Fuzzing
Bashed is an easy-rated Linux machine from HackTheBox created by Arrexel. It is a weird machine that is open, making it pretty straightforward; you can enter there quickly and then escalate with something worth trying (I was lucky here). In the current post, my IP is 10.10.14.12, and the target’s IP is 10.129.148.58.
Gather Information
nmap -sS -p- --open --min-rate 5000 -vvv -n -Pn 10.129.148.58


Add those directory to your notes, we will explore them soon. {Directories: /css/ /dev/ /images/ /js/ /php/ /uploads/}

Now we must check with our browser the structure of the website.
Browser: http://10.129.148.58

Browser: http://10.129.148.58/css/

Browser: http://10.129.148.58/dev/

Browser: http://10.129.148.58/dev/phpbash.php

Exploitation
Time to use a reverse shell using our [BrowserTerm] at /dev/phpbash.php and a local terminal [Term]

After this, we need a TTY Treatment to make it easier to work.

Privileges Escalation


adasd




Wait, it changes? That means that is related to test txt, and root is executing test.py (Discovered with ls -la)



Last updated
