Hack Forums
How to hide an executable file in a PDF? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: How to hide an executable file in a PDF? (/showthread.php?tid=6088235)



How to hide an executable file in a PDF? - NexusH - Jun 17, 2020

Hello everyone, I am particularly interested in keyloggers, I would like to know if it is possible to hide an executable file in a pdf document, for example?
Sorry for my low level English, I'm Spanish;)


RE: How to hide an executable file in a PDF? - Florin Salam - Jun 17, 2020

Hiding is not the actual problem but executing the code and that's something that cannot be achieved by design. However, you could actually inject client side code into a PDF and have it executed, look at external entity injection.

The idea is that PDF's structure is XML based and the XML language has a feature that allows you inject external data in order to make use of it depending on the logic of such XML document. Therefore, you could actually inject a JS library or inline javascript code.


RE: How to hide an executable file in a PDF? - rimane - Jun 21, 2020

You can also take a look to macro exploits, they are really usefull to use with keyloggers or rats.