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



  • RageLtMan <rageltman [at] sempervictus>


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