HTB: Gawk writeup

HTB: Gawk writeup

GAWK is a very easy challenge in the hardware category and the 1st task in the printer exploitation track.

CHALLENGE DESCRIPTION

I lost access to my computer and need a document urgently which got stuck in a printer. Can you get me the document ?

Upon starting the chall I was given a host address that I had no clue what to do with it , so I ran to my best friend google to get some answers.

After looking up some articles about printer hacking I found a tool called Pret
image
So I cloned the repo and ran the python script against our host ip as it says in the usage example
image

As easy as it looks, we got a shell! and it’s time to explore the files.
Keeping in mind the challenge description we’re looking for a specific file.
image

Here I found this PDF file so I decoded its base64 using an online tool that would display the file without the need to download it.

& we will get the flag on the first page!
image

Flag : HTB{tr4v3rs3_m4n4g3ment_d3240!}

cya in the next writeup!


HTB: Gawk writeup
https://stortny.github.io/blog/2024/08/26/gawk/
Author
stortny
Posted on
August 26, 2024
Licensed under