views:

281

answers:

2

Is there any way that I can embed a .exe file in a .pdf, .doc, .xls, .ppt file, and on opening the containing file, the document processor will run the .exe automatically?

A: 

In short, no. These file formats have no provision for embedding a Win32 PE executable inside of them.

For the Office files, you could use VBA to write a script that runs when the document is opened.

George Edison
can you suggest any link that shows some example of it.It will very much helpful for me.
Amar
http://en.wikipedia.org/wiki/Visual_Basic_for_Applications
George Edison
This is pretty easy to do with metasploit.
Rook
@Rook: I said "in short..."
George Edison
+1  A: 

Yes, this is totally possible and pretty easy to accomplish. You can use one of the many Adobe Acrobat Exploits in the Metasploit framework. Next you can use a download+exec shellcode to download and execute your payload, err I mean ".exe".

Rook