Binary
Encoding & Decoding
6 posts from HNF26 and picoCTF
HNF26 - The Custodian's Cadence
The challenge hosted a network service on port 2323 with the following description: The custodian of retro-01 still logs in at odd hours. The machine is long gone, but the feed is live.
based
As the challenge description suggests, we must be equipped with basic knowledge of different data encodings in order to solve this challenge. However, there are many types of numerical encodings or data encodings used to represent data in different formats.
convertme.py
Alright, our task is to convert a number from decimal to binary, pretty simple! There are many ways to do this. First, we download the Python script convertme.py (using wget), and ran nano immediately to examine the code.
binhexa
We begin by connecting to the server by running nc titan.picoctf.net 61359. We are greeted with a barrage of questions related to binary operations. Once we answer the 6 questions and enter the results of the last operation in hexadecimal, we are awarded with the flag.
2Warm
The challenge description instructs us to convert the number 42 to binary. We can use any online base 10 to base 2 conversion tool to do this. We can even do it manually.
WhitePages
This challenge was pretty interesting when I tried it, as I’ve never encountered a “blank” .txt file before. As per normal, we first download the provided file by using wget <link> to understand what we’re dealing with.