Skip to content

Instantly share code, notes, and snippets.

function Invoke-ExcelMacroPivot{
<#
.AUTHOR
Matt Nelson (@enigma0x3)
.SYNOPSIS
Pivots to a remote host by using an Excel macro and Excel's COM object
.PARAMETER Target
Remote host to pivot to
.PARAMETER RemoteDocumentPath
Local path on the remote host where the payload resides

Keybase proof

I hereby claim:

  • I am nj4c0b on github.
  • I am ynajih (https://keybase.io/ynajih) on keybase.
  • I have a public key ASCfXZu9Tu8OJxC58NLdz3Y5XDoEUkyyhVMKsQeeZezCGgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am najihyaakoub on github.
  • I am ynajih (https://keybase.io/ynajih) on keybase.
  • I have a public key whose fingerprint is B4A4 6CD1 24E6 3064 D608 1A64 D4D7 B1A8 FEEE 0EF0

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am najihyaakoub on github.
  • I am ynajih (https://keybase.io/ynajih) on keybase.
  • I have a public key whose fingerprint is 66C1 BB91 9F48 49D6 5C8E 701D 55B8 7C65 E884 43FA

To claim this, I am signing this object: