One Day Sec

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, 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 or Use Excel.Application object's RegisterXLL() method to load dll.
DotNetToJScriptJScriptVBScript.NET assemblyin-memory executionbypass whitelisting

Browse all Q&A →