# I heard you like files
We're given a PNG file and the hint that the (fictional) person who this PNG file belongs to specializes in PDFs. It sounds like a PDF file is embedded in here. Let's binwalk through it, and extract all files possibly embedded inside.
```$ binwalk --dd=".*" ```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-1.png)
Yup. Looks like a PDF is indeed embedded in here. Let's go ahead and open it up.
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-2.png)
This hint tells us that there may be another layer. Let's go back to the files we extracted and see if any of them seem out of the ordinary.
```$ file *```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-3.png)
That's strange. We have a Microsoft Word 2007+ file. Let's unzip it and see what files are embedded inside of it.
```$ unzip 34591D```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-4.png)
Well, at least we know the flag isn't there. Haha. Let's look around.
```$ tree```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-5.png)
Interesting. We have a PNG. Let's open it up.
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-6.png)
Intuition tells me that there's something more here. Let's binwalk through it.
```$ binwalk image1.png```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-7.png)
Looks like there's another PDF. Let's extract it and view the PDF.
```$ binwalk --dd=".*" image1.png```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-8.png)
Nothing useful in the contents of this PDF. Intuition tells me that there must be something more here. Let's run strings on it and see if there's any data after the EOF (End-Of-File).
```$ strings 1485 | tail -n 10```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-9.png)
Interesting. That looks like a Base64 encoded string after the EOF there. Let's decode it
```$ echo "ZmxhZ3tQMGxZdEByX0QwX3kwdV9HM3RfSXRfTjB3P30K" | base64 -d ```
![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/I-heard-you-like-files-10.png)