picoCTF 2022: Forensics: File types
Challenge: File types
Description This file was found among some files marked confidential but my pdf reader cannot read it, maybe yours can. You can download the file from here.
The file that was given, I am pretty sure is not a
Flag.pdf: shell archive text
shell archive text. As far as I know, we can extract it just by executing the file.
chmod +x Flag.pdf
After executing these commands, you will get a file extracted called
flag. Let's what file type it is.
flag: current ar archive
As we can see it's an
ar archive. So let's extract it as well.
ar xv flag
We can continue this process of extracting the files by using their file types. In the end, we are gonna get the flag encoded in hex like this:
Therefore, The flag is
This challenge was very annoying I would say. You need to extract a lot of files from files. But In the end, we got the flag in a hex form.