module

Powershell .NET Compiler

Disclosed
2012-08-14
Created
2018-05-30

Description

This module will build a .NET source file using powershell. The compiler builds
the executable or library in memory and produces a binary. After compilation the
PowerShell session can also sign the executable if provided a path the
a .pfx formatted certificate. Compiler options and a list of assemblies
required can be configured in the datastore.

Author

RageLtMan rageltman@sempervictus

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use post/windows/manage/powershell/build_net_code
msf post(build_net_code) > show actions
...actions...
msf post(build_net_code) > set ACTION < action-name >
msf post(build_net_code) > show options
...show and set options...
msf post(build_net_code) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.