Hack the Box Challenge: Art


Hint: Can you find the flag?

Art as in the concept, or the name? Let's find out! I download the zip file using wget then extract is using unzip and the provided password. Seriously? A PNG file? I type in xdg-open art.zip to open the file in Image Viewer.

Oh that's pretty. Looks kind of like a maze with lots of pretty colors. Ok… maybe the flag is hidden using steganography. The file size is 5.4 kB, so probably not, but let's check anyway.

I should probably note at this point, that I am not very good at steganography - luckily there's Google and tools already written that work in Kali. I managed to find two such tools: Steghide and StenoSuite. I'll start with StegoSuite first, so let's get that installed.

apt-get install stegosuite -y

I don't like installing a lot of things at once, I'd rather install one tool, use it first, and if it doesn't meet my needs, uninstall and try another one. I think this comes from my time as a computer tech many years ago. During my troubleshooting days, I'd try one thing at a time trying to solve the problem. This way I could easily keep track of what was done to resolve the issue.

With Stegosuite installed, let's go straight to the man pages.

Looks like it has a very intuitive GUI, so I launch it through the terminal by typing in stegosuite. I load the image file and click Extract. Well at first glance, there's nothing there. It looks like it locked up trying to find anything. I went back to Hack the Box to double-check something. Yeah, there's a whole Stego set of challenges, and this one came from Misc. I'm going to rule out steganography for this challenge. Let's move on.

Ok, so we know there's nothing embedded in that file, now what? If you've been following along with my challenge walkthroughs, you might remember Inferno and the god-awful esoteric language Malbolge. Sigh, let's Google "esoteric programming languages"… holy shit, there's actually a Wikipedia article titled that. I mean I get it, it's fun to make a language to "test the boundaries of computer programming language design". Isn't that the basis of "hacking" - figuring out an unorthodox solution for a complex problem. I started skimming through this article just to see if anything pops out. Wow, the second image for Piet looks familiar. Oh hey, check out the description, it uses bitmaps that looks like abstract… ART. This is a good one HTB, I'll give you this one. Back to Google to search for more information on Piet, perhaps even an online interpreter! Well the first result I find is the webpage of the creator of the language, http://www.dangermouse.net/esoteric/piet.html. I dig around a little and find links to interpreters, it looks like npiet might work for us, since I really don't want to install, configure and figure this language out. I head over to that page, browse for art.png then click Upload and Execute, let's see what happens!

That is so cool! There's the complete flag, that's everything we need to successfully complete this challenge.

This was a tricky one, if you don't know to go searching for esoteric programming languages, you'll be stuck on this one for a long time. It wasn't very tool heavy, it didn't require much in the way of hacking. The one thing it does force you to do is think outside the box - isn't that what hacking is about though? I love it!

Until next time!

Comments

Popular posts from this blog

Exporting BitLocker Recovery Keys From AD Using PowerShell

Hack the Box Challenge - Blackhole

Hack the Box Challenge - You Can Do It!