Feature request: macro detection in Office Open XML files

Started by rpbtf, April 09, 2016, 02:17:06 PM

Previous topic - Next topic

rpbtf

Hello Phil,
could you please add another tag for Open XML files (docx,..) so I can see if there's a macro inside (if the zip contains a vbaProject.bin or not) ?
If possible, I'd like to see that for the old MS Office bin file format too.

Best regards,
Ralf

Phil Harvey

Hi Ralf,

Thanks for the suggestion.  I'll look into this and post back here if I have any questions.  It would be useful if you could provide a sample.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rpbtf

Hello Phil,
more information about VBA macros in MS Office 97-2003 and 2007+ documents can be found here: http://www.decalage.info/vba_tools
In Word 2016 you have to use the .docm extension, if the document contains a macro. Otherwise Word will not open it. Rename it to .doc and Word 2016 does it.
It seems that Word 2010 opens .docx also with a macro in it.

Best regards,
Ralf

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

I'm just closing out this thread.  The current version of ExifTool identifies this test file as DOCM, which I think is what you wanted.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).