DotnetToJscript

xysoc·2025년 3월 23일
using System;
using System.Runtime.InteropServices;

public class Test
{
    public Test()
    {
        Console.WriteLine("DotnetTosJscript 실행됨!");
    }
}

dll로 빌드

csc /target:library /out:payload.dll Program.cs

커맨드창 키고 DotnetToJs 실행

.\DotNetToJScript.exe .\payload.dll -l jscript -o payload.js -c Test

-l: 사용할 언어 e.g (Jscript, VBA, VBScript)

-o: 출력될 파일명

-c: 엔트리 클래스 이름 지정 (default: TestClass)

reference

https://arttoolkit.github.io/wadcoms/DotNetToJscript

0개의 댓글