Unknown file
Description
On linux, quite often you will see files without any extensions. You must find out what kind of files they are so that you can choose appropriate tools to use on them.
50pts
Question
Inspect this file and get the flag
/var/unknown/file
Solution
First, I go to the folder where the file is located using the cd command. Next, I examine which file it is using the file command. I find out that the file is Zip archive data, at least v1.0 to extract, compression method=store
I could directly use the unzip command, but I know that it doesn't like to accept extensionless files every time, so I decide to copy the original file to a new name with the cp command just in case.
Next, I unzip the file.
I use the cat command to display the contents of the file and find that the data is encoded so I try to decode it with the base64 encoder. I have to repeat this a total of three times to get the flag.
Tools
- file
- unzip
- cat
- base64
Flag
ctf-tech{d7a2af26-7a1a}