Mirai

Note: In an attempt to be OSCP friendly, NONE of my write ups will utilize Metasploit. Zero. Zip. Tell your friends.

We’ll start with a scan of all open ports with the following command: nmap -p – 10.10.10.48

Next, we’ll enumerate versions and see if there’s any safe scripts available for those enumerated service versions: nmap -sC -sV -p 22,53,80,1614,32400,32469 10.10.10.48

We’ll keep this information handy, but for now the most interesting thing for me is port 80, and the other HTTP stuff running on port 32400, so let’s open up our browser and navigate to the website.

So a page comes up, but there’s nothing on it. So let’s enumerate that with gobuster

Enumerating HTTP

We’ll start with a basic enumeration using gobuster: gobuster dir -u http://10.10.10.48 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt

The scan will take a while to go, but within a few moments we see that the /admin directory is available, so let’s navigate there while the scan completes.

Looks like we’re at a page for Pi-hole

Having no idea what Pi-hole is I Googled the default username and password for Pi-hole and came right up with this:

Clicking on the Login button from the Pi-hole page, when I enter raspberry as the password I get a failed login attempt.

Let’s try another way to see if our credentials work, Medusa.

Medusa

Medusa is a tool that can be used to brute-force logins. But we don’t want to brute force anything (yet) we just want to see if the credentials we have work. My instance of Kali didn’t have it, so I had to install it with sudo apt-get install medusa

You can type medusa to see how to specify the options, and in this instance we’ll need -h for hostname, -u for username, -p for password, and -M ssh to specify the SSH module we’ll try to log in with. Thus, our command looks like this: medusa -h 10.10.10.48 -u pi -p raspberry -M ssh

Looks like we’re good to go, so let’s ssh into the box and log in: ssh pi@10.10.10.48

So, let’s start by seeing who we’re logged in as, and if we can do sudo with anything.

Cool! Let’s navigate to the desktop and see if we can get the user flag:

Getting Root

We can type sudo bash to get root access and then move to the /root directory and look for the root flag.

So, now we need to look for a USB drive location. Let’s start by moving to /mnt, and then /media

Well, roger that. Let’s move to /dev and look at the sbd file.

From here, you can either use strings or cat to look at the sbd file and get the root flag.

27 thoughts on “Mirai”

  1. naturally like your web-site however you have to test the spelling on quite a few of your posts. A number of them are rife with spelling issues and I find it very bothersome to inform the truth however I will surely come again again.

  2. My partner and I absolutely love your blog and find almost all of your post’s to be just what I’m looking for. Do you offer guest writers to write content for you? I wouldn’t mind producing a post or elaborating on a number of the subjects you write in relation to here. Again, awesome web site!

  3. Hiya, I’m really glad I’ve found this info. Nowadays bloggers publish just about gossips and internet and this is actually annoying. A good website with interesting content, this is what I need. Thank you for keeping this site, I will be visiting it. Do you do newsletters? Cant find it.

  4. I have recently started a blog, the information you offer on this site has helped me tremendously. Thank you for all of your time & work. “It is a great thing to know our vices.” by Cicero.

  5. A lot of thanks for all your valuable effort on this blog. My mother takes pleasure in setting aside time for internet research and it’s really easy to understand why. Most people hear all regarding the powerful medium you produce precious things on the blog and as well improve contribution from visitors on this area so our favorite girl is without a doubt starting to learn so much. Enjoy the rest of the new year. You’re the one doing a stunning job.

  6. There are actually numerous particulars like that to take into consideration. That could be a nice level to bring up. I offer the ideas above as general inspiration however clearly there are questions just like the one you carry up the place the most important thing will probably be working in honest good faith. I don?t know if greatest practices have emerged around issues like that, however I am certain that your job is clearly recognized as a fair game. Each boys and girls really feel the impression of only a moment’s pleasure, for the rest of their lives.

  7. Very nice info and straight to the point. I am not sure if this is in fact the best place to ask but do you people have any thoughts on where to hire some professional writers? Thx 🙂

  8. Este site é realmente fantástico. Sempre que acesso eu encontro coisas diferentes Você também pode acessar o nosso site e descobrir mais detalhes! Conteúdo exclusivo. Venha descobrir mais agora! 🙂

  9. I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thank you again!

  10. Hello There. I found your weblog the use of msn. This is a very well written article. I’ll be sure to bookmark it and come back to read extra of your useful info. Thank you for the post. I’ll certainly comeback.

  11. Have you ever considered writing an ebook or guest authoring on other sites? I have a blog based on the same topics you discuss and would love to have you share some stories/information. I know my visitors would appreciate your work. If you’re even remotely interested, feel free to send me an e-mail.

  12. Nice blog here! Also your web site rather a lot up fast! What host are you using? Can I get your associate link in your host? I wish my website loaded up as quickly as yours lol

  13. Hmm it looks like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the whole thing. Do you have any recommendations for novice blog writers? I’d certainly appreciate it.

  14. What i do not realize is in reality how you are no longer really a lot more neatly-preferred than you may be right now. You are so intelligent. You know therefore significantly in the case of this subject, produced me individually believe it from a lot of varied angles. Its like women and men don’t seem to be interested until it¦s something to accomplish with Girl gaga! Your own stuffs great. Always maintain it up!

  15. Thanks for sharing excellent informations. Your web site is so cool. I’m impressed by the details that you?¦ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found just the information I already searched all over the place and simply could not come across. What a perfect website.

Leave a Reply

Your email address will not be published. Required fields are marked *