HackTheBox: Beep
Hello Friends, welcome back to my blog for another writeup based on Hack The Box series for machine named BEEP.
So starting with nmap scan,
We got output with many ports and their services.
Lets check out the website as port 80/443 are open.
Lets find out about the directories by brute forcing using gobuster.
Here we could see the directory named vtigercrm, management portal if tried to access goes to index.php page.
So when researched about the vtigercrm, we got to know about exploit db number 37637
LINK: https://www.exploit-db.com/exploits/37637
This machine is exploitable using LFI vulnerabilities as mentioned in exploitdb 37637 number exploit.
Working through we get to know about //etc/amportal.conf%00&module-Accounts&action. Just view page source and it would give you sorted view.
Gather all the password and usernames from the page source and save it in files username.txt and password.txt respectively.
now we dont know the actual userid password so we can try bruteforcing through burp suite or else using hydra tool. For me I have had used burp suite tool many times and was newly introduced to this feature of hydra. Below command is used for bruteforcing the userid password checking.
So now we have got the username and password lets try to go for ssh on port 22.
Hmm, so there is an error for Diffie-Hellman-group-exchange-sha1 and so on..
After some researching on google I got to know about,
Use this command and instead of IP 123.123.123.123 use our HTB machine's IP that is 10.10.10.7.
Put the password we retrieved from hydra command. And BOOM.. we are in already.....
Check with using ID command firstly so that you can have a knowledge that which user you have owned to. And of-course find the user.txt and root.txt flags.
Comments
Post a Comment