Dragonborn

Kill well… and often

Like many video games, learning how to hack boxes is a progressive grind. The thing I’m most starved for is experience: hours of hands-on keyboard-mashing information dump. No more rabbit holes. I’m going to work down the list of Easy boxes and use walkthroughs whenever I exhaust my limited knowledge cache.

htb_list.png

Legacy

My first solo attempt was an easy kill. I ran Nmap and discovered that ports 139 and 445 open - it’s probably a Windows device running SMB.

scan.png

In the 24 AF Cyber Shoot, ms17_10 External Blue vulnerabilities were littered across the environment so I’m familiar with exploiting this vulnerability. exploit/windows/smb/ms17_010_psexec in Metasploit did the trick and gave me root access. Unfortunately, I forgot to take a screenshot of my work in my rush to take advantage of something I know. I’ll try to be more conscious about documentation for future exploits.

Devel

This box taught me foundational lessons in web backdooring.

I played around with PHP backdoors in the Cyber Shoot but never got anywhere. Devel allowed me to upload a reverse TCP shell through FTP.

Msfvenom, Metasploit’s exploit/multi/handler, and .aspx files were unfamiliar territory for me but IppSec’s walkthrough guided me through smoothly.

Beep

So far, this is the most interesting box I can comprehend. Beep is an Elastix (PBX, email, faxing, etc.) server with a variety of attack surfaces exposed.

beep_scan.png

I didn’t see any familiar services so I visited the website and ran Dirbuster. The index had nothing interesting but Dirbuster found a subdirectory called ‘Admin’.

Navigating here led me to an admin login page with the software version conveniently displayed.

beep_admin.png

I found a variety of vulnerabilities that could apply to FreePBX 2.8.1.4 with Searchsploit. This is where I got stuck. At this point, I still didn’t understand Searchsploit - I thought it was an extension for Metasploit but it’s actually a tool to search the independent exploit-db database of independent tools and proof-of-concepts. I didn’t know what a local file inclusion was and the exploits/php/webapps/40614.py script kept returning an SSL unsupported error even when SSLVerify was disabled.

beep_sslerror.png

Screw it, I turned to IppSec’s Beep walkthrough to patch my knowledge gaps and accomplish that grind.

beep_completed.png

The result was a little too convenient. Vtiger revealed a page with cleartext passwords that happened to be reused for the root account. Still, learning about LFI’s was pretty neat so I gave myself an easy pat on the back.

The video also went showed the source of Vtiger’s LFE. I’ve never done web development but the URL string fitting into the unsanitized PHP script clicked instantly. Even though I only used for the first exploit, I learned a lot from the entire video.

Overall

The grind has been very fruitful so far. I don’t think the boxes will feel repetitive any time soon and extra practice is very welcome. Taking down these boxes feels very similar to the dragon battles in Skyrim: I scramble around button mashing, take down the target in stages, then absorb its essence after it dies. Hacking in real life is just like Hacking (and Slashing) in Skyrim, with a similarly vast world and sophisticated but intuitive battle mechanics. The graphics are retro af. I’ll give it 5/7.

*****
Written by Nibs on 07 July 2019