The Glory of the Garden picoCTF Challenge is worth 50 Points. So we can expect a medium difficulty.
The only hint we get is: what is a hex editor

To answer that immediately: A hexeditor is a program that lets you view and edit the raw or binary data of any file. For that reason they are sometimes referred as binary file editors. They do represent the bytes of a file in hexadecimal notation (base 16 instead of the common base 10 for numbers). But enough of that. Let’s have a look at the challenge itself:

First, we use the wget command to download the file behind the given link. We obtain the image-file garden.jpg.

We open the file in hexeditor by typing

$hexedit garden.jpg

(You can use every hexeditor you like, you can get the basic CLI-one with ‘sudo apt install hexedit’)

After scrolling around a bit i jumped to the End of the file with the ‘>’ key. Zap. There is the flag in plaintext.

As we learned that we can also take a shortcut to obtain the flag. Just do

$strings garden.jpg | grep picoCTF

Slap that in and take the points.

Tags

No responses yet

Leave a Reply

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