Pester.bat

type: OSScripts
Used as part of the Powershell pester

Full path

c:\Program Files\WindowsPowerShell\Modules\Pester\<VERSION>\bin\Pester.bat

Commands

  1. ExecuteUser T1216

    Proxy execution

    Pester.bat [/help|?|-?|/?] "$null; {CMD}"

    Execute code using Pester. The third parameter can be anything. The fourth is the payload.

    os: Windows 10, Windows 11

    Execute: EXE

  2. ExecuteUser T1216

    Proxy execution

    Pester.bat ;{PATH:.exe}

    Execute code using Pester. Example here executes specified executable.

    os: Windows 10, Windows 11

    Execute: EXE

Detection

Resources

acknowledgement: Emin Atac @p0w3rsh3ll, Stamatis Chatzimangou @_st0pp3r_