PowerShell script that will generate an Word document that contains a macro.
This script is for security control testing purposes or malware analysis research only. Malicious use of this script is prohibitted.
Script generates a Microsoft Word document containing a macro. The macro vba code can be customzed. Simply replace the informastion in the $code variable secion of the script.
Look for this section, $code = @" @" Just place your code between the @" and "@ section and execute the script to generate your word document file"
The PS1 script contains code that generates random data to insure each file generated is forensicly unique.
Macro enabled Word Document generater requires Microsoft Word to be installed on the syestem that the scipt will be executed.
Some anti malware programs detect the word file when its generated so you may need to supress detection while the script is in use.
To generate a Word document with a unique MD5sum simply execute the PS1 script.
PS C:\Users\cyb3rw01f\> .\wordDocGenerator.ps1