Hi Tomasz/all

I have been working on extracting VBA code from the MS Office document component
parts that the OLE2 unpacker I sent a couple of weeks ago generates.

The code linked below should work on files from Office97 onwards, VBA 5 and 6. I
have tested some Word and Excel files, and things look quite good.

NOTE: I have also make some very minor changes to the OLE2 unpacker, and you'll
need the version linked below, or vba_extract will fail.

http://www.uncon.org/files/ole2_extract.c
http://www.uncon.org/files/vba_extract.c

Compilation:
gcc -Wall -o ole2_extract ole2_extract.c
gcc -Wall -o vba_extract vba_extract.c

Usage:

ole2_extract [-w] -f <filename>
      -w:     write files

vba_extract [-d <directory>]
      -d:     directory containing extracted files (defaults to .)

As always, failures, comments, patches welcome.

Note: I looked at or used code from the following projects for the vba stuff:
                OpenOffice
                libgsf

I'll look at adding support for older Office versions.

As before haven't tested this with MacOffice docs, need some samples.

Cheers,
-trog


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to