What makes Zebra, a Zebra? What makes Cow, a Cow? What makes Dog, a Dog? These are some tough questions. What's more tough is what makes a PDF file, a PDF? And what makes a PNG file, a PNG? I suppose only you can answer that.
For this challenge, we were given a file named trickery.pdf. On the surface, it looks like a standard .pdf file.
We ran the file command and it confirms that it is a pdf file.
filetrickery.pdf
file trickery.pdf
Opening the file, we did not discover much. Nothing of interest. And so, we were skeptical. π€
content of trickery.pdf
The bighint that caught our eye was "Who decides that this is a PDF and some other file is an image?"
We ran a binwalk command on the trickery.pdf file and we found something interesting!!
binwalk trickery.pdf
Look what we have here! TWO Zlibs compressed data and THREE Zip files to extract?! And so we extracted trickery.pdf using this binwalk command. This is a little bit of steganography, eh? π€«
extracted trickery.pdf
Inside the extracted folder, there were TWO files of interest!
Trickery
Trickery.class
extracted trickery
Additional Information: Running a .class file in Unix.