I like reading PoC problems || GTFO, and one thing I found great when I first discovered it was the "polyglot" nature of their PDF files.
Let's meet the explanation: if you consider, for example, their 8th release , you can unzip files from it; perform the encryption they talk about by running it as a script and even better (worse?) with their 9th problem, you can even play it as a music file!
Currently, I write small scripts every week, and every time I write a PDF file in LaTeX to explain these scenarios. Therefore, I would really like to create the same PDF files. Unfortunately, they explained (in part) in their first release how to include zip files, but they did it through three small thumbnails of cmd lines without any actual explanation.
So my question is basically: how can I create a polyglot PDF file containing things like zip, as well as a script shell that can be run using arguments like regular scripts?
I ask here about the process of creation, and not just about how this is possible. The ideal way for me would be that there are already some scripts or programs that make it easy to create such PDF files.
I tried to find the keywords "polyglot files" and other similar ones on the net and could not find any useful matches. Maybe this process has a different name?
I already read the presentation by Julia Wolf , which explains how everything works, but, unfortunately, I did not have time to apply the knowledge there in the real world, because I, unfortunately, was not used to playing with file headers and the way to create a PDF file.
EDIT: Ok, I read more and found the 7th edition of PoC || GTFO to be really informative about this. I can eventually create my own scripts to create such multifaceted PDF files, if I have some more time to review it.