Vulnerability & Exploit Database

Back to search

Powershell .NET Compiler

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.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

post/windows/manage/powershell/build_net_code

Authors

  • RageLtMan <rageltman [at] sempervictus>

Platforms

  • windows

Reliability

Development

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) > sessions ...sessions... msf post(build_net_code) > set SESSION <session-id> msf post(build_net_code) > show options ...show and set options... msf post(build_net_code) > run