What is DotNetToJScript and how can it be used to load .NET programs?

DotNetToJScript is a tool by James Forshaw that converts .NET assemblies into JScript, VBScript, or VBA scripts, enabling in-memory execution without dropping files. As detailed in [Loading .Net Programs Using JS](/news/loading-net-programs-using-js), you compile it with VS2012 (adding NDesk.Options and System.Core references) then generate scripts like `DotNetToJScript.exe -o 1.js ExampleAssembly.dll`. This technique bypasses application whitelisting and is similar to other code execution methods such as [Analysis of Executing Programs Using rundll32](/news/analysis-of-executing-programs-using-rundll32) or [Use Excel.Application object's RegisterXLL() method to load dll](/news/use-excel-application-objects-registerxll-method-to-load-dll).